Please stop using the wp_print_scripts action hook to load your javascript
-
This plugin is using the wp_print_scripts and wp_print_styles action hooks to load all javascript and css. wp_print_scripts fires on every page load which causes all your javascript to load everywhere including every single admin page.
Please read https://make.www.ads-software.com/core/2011/12/12/use-wp_enqueue_scripts-not-wp_print_styles-to-enqueue-scripts-and-styles-for-the-frontend/
and update your plugin to use the admin_enqueue_scripts hook for you admin side javascript and wp_enqueue_scripts for your front facing javascript.Thank you,
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Please stop using the wp_print_scripts action hook to load your javascript’ is closed to new replies.