Skip to content

Instantly share code, notes, and snippets.

Jameshwart Lopez linksyncjameshwartlopez

Block or report user

Report or block linksyncjameshwartlopez

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@linksyncjameshwartlopez
linksyncjameshwartlopez / removejs.php
Created Feb 6, 2019
Remove a javascript using dequeue
View removejs.php
<?php
/**
Remove sorting js from gal because its giving issue to wordpress admin
**/
function wpdocs_dequeue_script() {
if(is_admin()){
//Only remove the script if the page is admin
wp_dequeue_script( 'sorting-woocommerce-prosorting-woocommerce-pro' );
}
You can’t perform that action at this time.