Skip to content

Instantly share code, notes, and snippets.

View ppcdias's full-sized avatar
🎯
Focusing

Pedro Dias ppcdias

🎯
Focusing
View GitHub Profile
@ppcdias
ppcdias / woocommerce-select2-selectwoo-remove
Created August 23, 2022 20:33 — forked from ontiuk/woocommerce-select2-selectwoo-remove
Woocommerce Remove Select2 / SelectWoo
// Add to your theme's functions.php file. De-queues Select2 styles & scripts. Useful to keep Boostrap form control formatting
/**
* Remove Woocommerce Select2 - Pre WC 3.2.1-ish
*/
function woo_dequeue_select2() {
if ( class_exists( 'woocommerce' ) ) {
wp_dequeue_style( 'select2' );
wp_deregister_style( 'select2' );