Last active
September 10, 2018 13:15
-
-
Save thiagotmendes/8add0c49e109707a7b78095537870388 to your computer and use it in GitHub Desktop.
This file contains 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 jQuery3(){ | |
$date = date("dmy"); | |
if (!is_admin()){ | |
wp_deregister_script('jquery'); | |
wp_register_script('jquery', get_template_directory_uri()."/assets/js/jquery.min.js", false, $date); | |
wp_enqueue_script('jquery'); | |
} | |
} | |
add_action('wp_enqueue_scripts', 'jQuery3'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment