/ Published in: PHP
Ensures the admin scripts or styles will load only on your wordpress plugin settings page:
- addoptionspage 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
Expand |
Embed | Plain Text
/* EXAMPLE: add_action('[action name]-[value returned by add_options_page'], array(&$this, '[function name]'); */
You need to login to post a comment.
