Last active
December 20, 2015 22:09
-
-
Save bradpotter/6202745 to your computer and use it in GitHub Desktop.
Enqueue Primary Menu Script
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
/** | |
* Register and Enqueue Primary Navigation Menu Script | |
* | |
* @author Brad Potter | |
* | |
* @link http://www.bradpotter.com | |
*/ | |
function gst_primarymenu_script() { | |
wp_register_script( 'primary-menu', get_stylesheet_directory_uri() . '/js/primarymenu.js', array('jquery'), '1.0.0', false ); | |
wp_enqueue_script( 'primary-menu' ); | |
} | |
add_action('wp_enqueue_scripts', 'gst_primarymenu_script'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment