Closed a-danae closed 1 year ago
We'll also need to include WC_Subscriptions_Order::add_contains_subscription_hidden_field
for HPOS. Planning to handle it in a separate PR to keep them small and easy to test.
Update: GH issue for this https://github.com/Automattic/woocommerce-subscriptions-core/issues/500
Fixes #499 Fixes #469
Description
This PR includes the "contains_subscription" column to the Orders list admin page when HPOS is enabled.
WC_Subscriptions_Order::add_contains_subscription_column_content_hpos
, which does the same asWC_Subscriptions_Order::add_contains_subscription_column_content
but expects the arguments provided by the HPOS-specific hook.woocommerce_shop_order_list_table_custom_column
action, which is specific for HPOS and analogous tomanage_shop_order_posts_custom_column
for non-HPOS.WC_Subscriptions_Order::add_contains_subscription_column
to the HPOS-specific actionwoocommerce_shop_order_list_table_columns
. This action is analogous to themanage_edit-shop_order_columns
for non-HPOS.How to test this PR
/wp-admin/admin.php?page=wc-settings&tab=advanced§ion=features
/wp-admin/admin.php?page=wc-orders
Regression tests
Product impact