Answers for "wordpress load jquery proper way"

PHP
1

wp_enqueue_script jquery

// include custom jQuery
function shapeSpace_include_custom_jquery() {

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

}
add_action('wp_enqueue_scripts', 'shapeSpace_include_custom_jquery');
Posted by: Guest on April-05-2020

Code answers related to "wordpress load jquery proper way"

Browse Popular Code Answers by Language