Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Add this code in functions.php file to load the custom script in wp admin page/dashboard
- function load_custom_script() {
- wp_enqueue_script('custom_js_script', get_bloginfo('template_url').'/js/custom.js', array('jquery'));
- }
- add_action( 'admin_enqueue_scripts', 'load_custom_script' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement