Skip to content

Instantly share code, notes, and snippets.

@kaskad88
Last active June 24, 2022 08:20
Show Gist options
  • Save kaskad88/1adff22fa3efed47bb47ce64f7633678 to your computer and use it in GitHub Desktop.
Save kaskad88/1adff22fa3efed47bb47ce64f7633678 to your computer and use it in GitHub Desktop.
add_action( 'admin_enqueue_scripts', function() {
if ( wp_script_is( 'addify_ps-select2-js' ) && wp_script_is( 'cx-select2' ) ) {
wp_dequeue_script( 'addify_ps-select2-js' );
}
}, 99 );
add_action( 'admin_enqueue_scripts', function() {
if ( wp_script_is( 'wp_social_select2_js' ) && wp_script_is( 'cx-select2' ) ) {
wp_dequeue_script( 'wp_social_select2_js' );
}
}, 99 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment