Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
function jQuery3(){
// Apenas para mudar a versão automaticamente
$date = date("dmy");
// Le a função apenas no front do site
if (!is_admin()){
// Tira o registro do Jquery que estava funcionando
// Registra o novo script
wp_register_script('jquery', "", false, $date);
// Aponta o carregamento do script
add_action('init', 'jQuery3');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.