How to hide WooCommerce block patterns

Because someone asked me on Mastodon, here’s a quick code snippet to unregister the block patterns provided in WooCommerce:

I haven’t tested how this might effect templates, so use at your own risk.

Edit Oct 29, 2025: I’ve updated this gist to also remove the remote patterns that you might see if your store is connected to WooCommerce.com.

2 responses to “How to hide WooCommerce block patterns”

  1. Alberto Prado Avatar

    Thank you so much. I’m developing a store using only Gutenberg, and I hate seeing all those ugly patterns that I’m never going to use.

    1. Brian Coords Avatar
      Brian Coords

      Good luck! The snippet seems to only work sometimes, and sometimes patterns can get stuck in cache and take awhile to fully disappear.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Follow Modern WordPress Development

Receive new posts in your inbox. Never spam.

Continue reading