Revision: 48934
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 13, 2011 03:21 by relish
Initial Code
/* EXAMPLE: add_action('[action name]-[value returned by add_options_page'], array(&$this, '[function name]'); */ add_action('admin_print_scripts-settings_page_SlideThatBanner', array(&$this,'add_admin_js'));
Initial URL
Initial Description
Ensures the admin scripts or styles will load only on your wordpress plugin settings page: - add_options_page returns a hook_suffix for the settings page of your plugin. - append this value prefixed with a dash (-) to the end of the action you are adding to
Initial Title
WP: add action to plugin specific page
Initial Tags
wordpress
Initial Language
PHP