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.

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