Place Printful behind a feature flag (#49104)
* Add printful feature flag * Place printful placement behind feature flag * Add changelog
This commit is contained in:
parent
b36083403d
commit
9af58923de
|
@ -132,10 +132,12 @@ export const SETUP_TASKLIST_PRODUCT_TYPES_FILTER =
|
|||
export const SETUP_TASKLIST_PRODUCTS_AFTER_FILTER =
|
||||
'woocommerce_admin_task_products_after';
|
||||
|
||||
addFilter(
|
||||
if ( window.wcAdminFeatures && window.wcAdminFeatures.printful === true ) {
|
||||
addFilter(
|
||||
SETUP_TASKLIST_PRODUCTS_AFTER_FILTER,
|
||||
'woocommerce/task-lists/products-sponsored-placement',
|
||||
( products ) => {
|
||||
return [ ...products, PrintfulAdvertProductPlacement ];
|
||||
}
|
||||
);
|
||||
);
|
||||
}
|
||||
|
|
|
@ -43,6 +43,7 @@ declare global {
|
|||
'onboarding-tasks': boolean;
|
||||
'payment-gateway-suggestions': boolean;
|
||||
'pattern-toolkit-full-composability': boolean;
|
||||
printful: boolean;
|
||||
'product-pre-publish-modal': boolean;
|
||||
'product-custom-fields': boolean;
|
||||
'remote-inbox-notifications': boolean;
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
Significance: minor
|
||||
Type: update
|
||||
|
||||
Add feature flag for Printful placement
|
|
@ -25,6 +25,7 @@
|
|||
"remote-inbox-notifications": true,
|
||||
"remote-free-extensions": true,
|
||||
"payment-gateway-suggestions": true,
|
||||
"printful": false,
|
||||
"settings": false,
|
||||
"shipping-label-banner": true,
|
||||
"subscriptions": true,
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
"payment-gateway-suggestions": true,
|
||||
"product-pre-publish-modal": false,
|
||||
"product-custom-fields": true,
|
||||
"printful": false,
|
||||
"remote-inbox-notifications": true,
|
||||
"remote-free-extensions": true,
|
||||
"settings": false,
|
||||
|
|
Loading…
Reference in New Issue