Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save codehooligans/dc34d2be87611b608f05 to your computer and use it in GitHub Desktop.
Save codehooligans/dc34d2be87611b608f05 to your computer and use it in GitHub Desktop.
codehooligans.com: Adding JavaScript via WordPress init
<?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