The dequeue handle is incorrect
it should be wp_dequeue_style('wc-block-style');
and not wp_dequeue_style('wc-block-style-css');
A bit confusing at first i agree, every js and css that was enqued via wp_enqueue_style
or wp_enqueue_script
gets a suffix of css/js
Example
wp_enqueue_style('swiper', 'https://cdnjs.cloudflare.com/ajax/libs/Swiper/4.4.6/css/swiper.min.css')
This will create a <link>
with an id
attribute of swiper-css
, im guessing this is why you thought that in order to dequeue the style you need to do this fundtion wp_dequeue_style('swiper-css')
. But it should be wp_dequeue_style('swiper')