Skip to content
Willy Aguirre edited this page Jan 6, 2017 · 2 revisions

Reemplazar la version por defecto jquery en wordpress

function my_enqueued_assets() {

wp_deregister_script( 'jquery' );

wp_enqueue_script( 'script-name', '//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js', array(), '2.1.4' );

}

add_action( 'wp_enqueue_scripts', 'my_enqueued_assets' );

Clone this wiki locally