Created
November 16, 2012 03:30
-
-
Save amyunus/4083780 to your computer and use it in GitHub Desktop.
Register and enqueue script in WordPress
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 enqueue_script_in_wordpress() | |
{ | |
wp_register_script( 'first-script', '/to/the/file' ); | |
wp_register_script( 'second-script', '/to/another/file' ); | |
// not like this | |
// wp_register_script( 'custom-script', '/to/the/file' ); | |
// wp_register_script( 'custom-script', '/to/another/file' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment