Created
February 19, 2014 19:59
-
-
Save petenelson/9100340 to your computer and use it in GitHub Desktop.
WordPress: Admin hook for plugin loading
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// can be run inside of an admin_init hook | |
global $pagenow; | |
global $plugin_page; | |
add_action('load-' . get_plugin_page_hook($plugin_page, $pagenow), 'my_function' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment