Created
February 9, 2021 07:23
-
-
Save wpmu-authors/702c31353253e89913a7a42b4b2a59f8 to your computer and use it in GitHub Desktop.
enqueues-jquery.html
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_assets() { | |
wp_deregister_script( 'jquery' ); | |
wp_register_script( 'jquery', get_template_directory_uri() . '/jquery-latest.js' ); | |
} | |
add_action( 'wp_enqueue_scripts', 'my_assets' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment