Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'init', 'child_manage_woo_styles', 99 );
- define( 'WOOCOMMERCE_USE_CSS', false );
- /**
- * Remove all WooCommerce scripts and styles
- *
- * @author WP Smith
- * @since 1.0.0
- */
- function child_manage_woo_styles() {
- remove_action( 'wp_head', array( $GLOBALS['woocommerce'], 'generator' ) );
- remove_action( 'wp_enqueue_scripts', array( $GLOBALS['woocommerce'], 'frontend_scripts' ) );
- }
Add Comment
Please, Sign In to add comment