Advertisement
afsarwebdev

Load custom script in wp admin page/dashboard

Oct 22nd, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. //Add this code in functions.php file to load the custom script in wp admin page/dashboard
  2. function load_custom_script() {
  3. wp_enqueue_script('custom_js_script', get_bloginfo('template_url').'/js/custom.js', array('jquery'));
  4. }
  5. add_action( 'admin_enqueue_scripts', 'load_custom_script' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement