/ Published in: PHP

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
- 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
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/* EXAMPLE: add_action('[action name]-[value returned by add_options_page'], array(&$this, '[function name]'); */
Comments
