Created
November 7, 2013 08:25
-
-
Save funteractive/7351055 to your computer and use it in GitHub Desktop.
外部jsファイルの読み込み
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 | |
function print_my_scripts(){ | |
if( !is_admin() ){ | |
wp_enqueue_script( 'script', get_stylesheet_directory_uri() . '/shared/js/script.js' ); | |
} | |
} | |
add_action( 'wp_footer', 'print_my_scripts' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment