0
X
Add Snippet To Project
New Project
Add To Existing Project
/**
* Registers a custom script to be used on the front-end of the website.
*
* @return void
*/
function wpturbo_register_my_custom_scripts() : void {
wp_register_script( 'my-script', get_template_directory_uri() . 'my-script.js', [], false );
wp_enqueue_script( 'my-script' );
}
add_action( 'wp_enqueue_scripts', 'wpturbo_register_my_custom_scripts' );