Last active
April 8, 2016 20:44
-
-
Save jstnkrr/13c010edbcd38353b4b5a65533247010 to your computer and use it in GitHub Desktop.
region_enqueue_scripts
This file contains hidden or 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 | |
// Load JS for this page, with dependencies | |
add_action('wp_enqueue_scripts', 'region_enqueue_scripts'); | |
function region_enqueue_scripts() { | |
wp_enqueue_script('region-template-name', get_template_directory_uri() . '/_/js/regions/template-name.js', array('jquery'), null, true); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment