Skip to content

Instantly share code, notes, and snippets.

@petenelson
Created February 19, 2014 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save petenelson/9100340 to your computer and use it in GitHub Desktop.
Save petenelson/9100340 to your computer and use it in GitHub Desktop.
WordPress: Admin hook for plugin loading
// 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