Created
February 8, 2021 14:42
-
-
Save wpmu-authors/cd1216b168b145bfad9053c99c803fa0 to your computer and use it in GitHub Desktop.
enqueue-theme.php
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
function my_theme_scripts() { | |
wp_enqueue_script( 'my-great-script', get_template_directory_uri() . '/js/my-great-script.js', array( 'jquery' ), '1.0.0', true ); | |
} | |
add_action( 'wp_enqueue_scripts', 'my_theme_scripts' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment