Skip to content

Add WooCommerce HPOS and cart/checkout blocks compatibility declarations#278

Open
thisismyurl wants to merge 1 commit into
johnbillion:developfrom
thisismyurl:add/woocommerce-feature-compatibility-declarations
Open

Add WooCommerce HPOS and cart/checkout blocks compatibility declarations#278
thisismyurl wants to merge 1 commit into
johnbillion:developfrom
thisismyurl:add/woocommerce-feature-compatibility-declarations

Conversation

@thisismyurl

Copy link
Copy Markdown

Adds a before_woocommerce_init action that declares compatibility with the HPOS (custom order tables) and cart/checkout blocks features via FeaturesUtil::declare_compatibility(). The plugin already uses WC CRUD methods correctly, so the HPOS declaration is accurate. This removes the "Not compatible" badge in WooCommerce → Status → Features.

Addresses #266.

Note: cleaned up and tested with AI assistance, per AGENTS.md.

Registers a `before_woocommerce_init` action that declares compatibility
with the custom order tables (HPOS) and cart/checkout blocks features via
`FeaturesUtil::declare_compatibility()`.

The plugin already uses WC CRUD methods correctly (`get_user()`,
`get_view_order_url()`), so the HPOS declaration is accurate. Declaring
cart/checkout blocks compatibility removes the remaining "Not compatible"
badge in WooCommerce → Status → Features.

Closes johnbillion#266
Copilot AI review requested due to automatic review settings May 29, 2026 18:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds WooCommerce feature compatibility declarations so the plugin can opt into HPOS and cart/checkout blocks support during WooCommerce initialization.

Changes:

  • Hook into before_woocommerce_init from init_hooks()
  • Add action_before_woocommerce_init() to declare compatibility for custom_order_tables (HPOS) and cart_checkout_blocks

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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