polo12
Forum Replies Created
-
Forum: Hacks
In reply to: Need action hook when WordPress updates settingsSo far I didn’t find a hook for the above. But my job was done by checking the URL in my plugin’s option page.
Whenever the plugin’s settings are successfully updated , the URL is appended bysettings-updated=true
. So I put the following code in my plugin’s admin file.$hook = add_menu_page('My Plugin Settings','My Plugin Settings','manage_options','my_plugin_settings','display_plugin_options'); add_action('load-'.$hook,'do_on_my_plugin_settings_save'); function do_on_my_plugin_settings_save() { if(isset($_GET['settings-updated']) && $_GET['settings-updated']) { //plugin settings have been saved. Here goes your code } }
For information on the
load-(page)
hook, go hereForum: Hacks
In reply to: Need action hook when WordPress updates settingsI too need the hook when a plugin’s options are saved. Somebody please help.
Forum: Plugins
In reply to: [WP-Activity] [Plugin: WP-Activity] Filter the log for each userOk this topic is resolved. ??
Forum: Everything else WordPress
In reply to: How is caching enabled in WordPressOk, first of all, the cache is stored only for the current script execution. I put a loop to execute the widget() twice and realized that the cache actually works for the same widget instance. Therefore, a memcached type plugin might successfully do the caching required. ??
Forum: Everything else WordPress
In reply to: Does WordPress provide default caching?Caching works perfect now!
Forum: Everything else WordPress
In reply to: Does WordPress provide default caching?Yup realized it now. Thanks! ??
Forum: Plugins
In reply to: [WP-Activity] [Plugin: WP-Activity] Filter the log for each userYup I did that. Actually what I needed was a page where the current user gets to see his recent activities. So I just added a shortcode for the widget and used the shortcode in a page from admin panel. Works Perfect! Thanks!
Forum: Fixing WordPress
In reply to: Move this down?Am not much into CSS..but changing the opacity to 1 in #access in your style.css hides the extra bit of the main area behind the menu. B)
Forum: Fixing WordPress
In reply to: wp-loginIs there any error being displayed?