How To Include Custom jQuery in WordPress

Published Date Author: , Posted December 20th, 2018 at 11:27:51am
1
2
3
4
5
6
7
8
// include custom jQuery
function wyz_include_custom_jquery() {
 
    wp_deregister_script('jquery');
    wp_enqueue_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js', array(), null, true);
 
}
add_action('wp_enqueue_scripts', 'wyz_include_custom_jquery');
// include custom jQuery
function wyz_include_custom_jquery() {

	wp_deregister_script('jquery');
	wp_enqueue_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js', array(), null, true);

}
add_action('wp_enqueue_scripts', 'wyz_include_custom_jquery');

No comments as yet.

Leave Your Comment  Leave a comment

All fields marked with "*" are required.