Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

wordpress disable jquery migrate

PHPfunction remove_jquery_migrate( $scripts ) {
	
	if ( ! is_admin() && isset( $scripts->registered['jquery'] ) ) {
			
		$script = $scripts->registered['jquery'];
		
		if ( $script->deps ) { 
			$script->deps = array_diff( $script->deps, array( 'jquery-migrate' ) );
		}
	}
}
add_action( 'wp_default_scripts', 'remove_jquery_migrate' );
Comment

PREVIOUS NEXT
Code Example
Javascript :: get closest parent tr table row jquery 
Javascript :: how to check hover effect in js 
Javascript :: substring 
Javascript :: join array js 
Javascript :: how to get last string in javascript 
Javascript :: express get remote ip 
Javascript :: js is boolean 
Javascript :: js create object from array 
Javascript :: force delete in sequelize 
Javascript :: Javascript Get day number in year from date 
Javascript :: header logo react native img 
Javascript :: how to calculate the time complexity of a recursive function 
Javascript :: add days in mome 
Javascript :: js filter to remove empty string in array. 
Javascript :: export data to excel using react js 
Javascript :: javascript get array object by id 
Javascript :: get element by id like javascript 
Javascript :: Find a vowel at the begining and end with regular expression 
Javascript :: axio post file 
Javascript :: elasticsearch aggregation unique values 
Javascript :: localstorage setitem 
Javascript :: render object id in an array reactjs from database 
Javascript :: lodash remove null from object 
Javascript :: simple javascript function 
Javascript :: vue js import css from node modules 
Javascript :: webpack config minify 
Javascript :: javascript convert file to array 
Javascript :: javascript copy 2d array 
Javascript :: how to check if exists in javascript 
Javascript :: preview upload image js 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =