WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I saw the excellent answer (link below) but would like to learn for myself how to look for action call of a specific plugin so i can stop it using the idea of EAMan Restricting a Plugin to Only Load its CSS and JS on Selected Pages?

I have used http://wordpress.org/extend/plugins/datapress/ and its js/css is only needed on one page.

Same for other plugins. How do I go about finding out what function those plugins call so I can enabled it on only pages needed.

share|improve this question
If the plugin is still actively developed, report your problem back to the plugin author as well please. – hakre Feb 13 '11 at 10:52
Yes, I did let the author know about it. – Andy Nguyen Feb 13 '11 at 13:17

is_admin() is useful for the front end.

The load-$pagenow hook and a few others are useful on the backend. wp-admin/admin-header.php, for instance, contains:

do_action('admin_enqueue_scripts', $hook_suffix);

Note the $hook_suffix variable, which you can var_dump() then and there to know what its value is when your plugin's page is being loaded.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.