I am engaged on a customized WooCommerce theme, and ideally wish to use the secure Gutenberg blocks shipped with WooCommerce. Clearly, as a substitute of over-riding all of their kinds with my very own to match the design, I might relatively take away them to enhance web page pace. Looks as if it ought to be a easy course of, however no consequence up to now. Utilizing this:
perform mytheme_woocommerce_remove_block_styles() {
wp_dequeue_style( 'wc-block-style-css' );
}
add_action( 'wp_enqueue_scripts', 'mytheme_woocommerce_remove_block_styles', 100 );
Do I must hook it at the next precedence? I might suppose 100 could be adequate. Any help is appreciated.