WordPress Ajax callback function from plugin – OOP

Using PluginBoilerplate to write a plugin. I need to make an ajax call. I added to main plugin.php file, class to register scripts and handle ajax calls. if ( ! class_exists( ‘PoorMansNameSpaceAJAX’ ) ) { class PoorMansNameSpaceAJAX{ public static $instance = null; public $nonce=””; public $name=”ajaxexample”; public static function getInstance() { null === self::$instance AND … Read more

Send email to Admin when user/member updates specific user/member data

I have previously asked about How to automatically send email to Admin when a user/member changes his/hers profile data. And got some very good answers. Send automatic mail to Admin when user/member changes/adds profile Now a follow up: I only want to send/email the data (profiledata) that was updated/added. 2 Answers 2 So, as Bainternet … Read more

WordPress stripping html and script tags from some admin users on save

When I add content to a page as the original admin user, I can past in the following code and it saves fine (old google search set up by another user): <form action=”http://www.google.com/cse” enctype=”application/x-www-form-urlencoded” id=”searchbox_001294947689528032268:0gmklvjoyzm” method=”get”> <input name=”cx” type=”hidden” value=”001294947689528032268:0gmklvjoyzm” /> <input name=”q” size=”40″ type=”text” /> <input name=”sa” type=”submit” value=”Search” /> <input name=”cof” type=”hidden” value=”FORID:0″ … Read more

Widgets not expanding on wordpress 3.3 widget dashbord

I updated to WordPress 3.3 (manual update) and cleaned browser cache. Widgets dashbord stop working when tring to expand dynamic sidebars for custom theme when it works for previous wordpress 3.2 installation (using register sidebar on functions.php) I have tried to install Hotfix 0.8 exension and now it works for twentyten theme but not for … Read more

What filter/action hook can I use to add a few links to the admin comments page?

I would like to add a link to every comment when it’s displayed in the recent comments admin page (edit-comments.php). For the sake of this question, the link should just be this: <a href=”https://wordpress.stackexchange.com/questions/64737/mailto:[comment-author-email]?subject=hello”>Mail comment author</a> – the actual thing I want to put there isn’t really important, I just want to know how to … Read more

Restrict Admin Capabilities in MultiSite

update_core update_plugins update_themes install_plugins install_themes delete_themes edit_plugins edit_themes Hi, I want to restrict those capabilities to user_id = 1 so other super admins cant edit network files. (Btw if i am missing something, let me know). What is proper way of this? Tried http://wordpress.org/extend/plugins/extended-super-admins/ but it adds ‘manage_esa_options’ cap to every blog so super_admins see … Read more

Refreshing collections in the admin media manager

I know this question is very similar to this previously asked question; however, I was wondering if there was a more up-to-date/official way to refresh content programmatically in the WordPress admin media manager. In my specific instance, I’m trying to integrate the Getty Images plugin with a select attachment modal (e.g., Featured Image). Currently, I’ve … Read more