Skip to content

Instantly share code, notes, and snippets.

@1337hero
Last active January 19, 2017 16:34
Show Gist options
  • Save 1337hero/bf3eb39b4a68e9747b334db8117188d1 to your computer and use it in GitHub Desktop.
Save 1337hero/bf3eb39b4a68e9747b334db8117188d1 to your computer and use it in GitHub Desktop.
WordPress Custom Script
// Register Script
function scripts() {
wp_register_script( 'scripts', 'xxx.com', false, '1.0', false );
wp_enqueue_script( 'scripts' );
}
add_action( 'wp_enqueue_scripts', 'scripts' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment