Example usage of wp_enqueue_script
<?php | |
function wp_smartwp_scripts_method() { | |
wp_enqueue_script( 'my-custom-script', get_stylesheet_directory_uri() . '/js/your_custom_script.js', array( 'jquery' ), true ); | |
} | |
add_action( 'wp_enqueue_scripts', 'wp_smartwp_scripts_method' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment