Skip to content

Block WooCommerce patterns from loading in the editor#20

Merged
DanielHudson2 merged 9 commits into
mainfrom
develop
Aug 13, 2025
Merged

Block WooCommerce patterns from loading in the editor#20
DanielHudson2 merged 9 commits into
mainfrom
develop

Conversation

@brettsmason

Copy link
Copy Markdown
Member

WooCommerce patterns don't follow or respect loading remote patterns.
As a result, this is a workaround to disable all WooCommerce patterns. A lot of patterns are loaded here: https://github.com/woocommerce/woocommerce/blob/9f0e00e19fcabf928c326c102e78c4b16455c197/plugins/woocommerce/src/Blocks/BlockPatterns.php#L210

Note that we might want to re-organise the class structure here to be aligned with how you think would work best going forward.

@DanielHudson2 DanielHudson2 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Patterns functionality works well in my tests so no issues there

@DanielHudson2

Copy link
Copy Markdown
Member

@brettsmason i've restructured the classes into folders, could you give it a once over

@DanielHudson2 DanielHudson2 merged commit 45a5640 into main Aug 13, 2025
1 check passed
@DanielHudson2 DanielHudson2 deleted the develop branch August 13, 2025 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants