Last active
August 29, 2015 14:03
-
-
Save jacobwise/0a08cbdfeb1e47b36a92 to your computer and use it in GitHub Desktop.
Shows how to add a separate JavaScript file for the admin screen section of your WordPress Website
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function jw_admin_scripts() { | |
wp_enqueue_script( 'adminscripts', get_stylesheet_directory_uri() . '/assets/js/admin.min.js', array('jquery'), NULL, true ); | |
} | |
add_action( 'admin_enqueue_scripts', 'jw_admin_scripts' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment