Created
January 22, 2015 15:01
-
-
Save codehooligans/dc34d2be87611b608f05 to your computer and use it in GitHub Desktop.
codehooligans.com: Adding JavaScript via WordPress init
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 my_functions_init() { | |
wp_enqueue_script('jquery'); | |
} | |
add_action( 'init', 'my_functions_init' ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment