diff --git a/plugins/woocommerce-beta-tester/api/tools/reset-cys.php b/plugins/woocommerce-beta-tester/api/tools/reset-cys.php index f860b5204b7..4124e3464c1 100644 --- a/plugins/woocommerce-beta-tester/api/tools/reset-cys.php +++ b/plugins/woocommerce-beta-tester/api/tools/reset-cys.php @@ -44,5 +44,15 @@ function tools_reset_cys() { array( '%s', '%s' ) ); + // Reset the patterns AI data. + $wpdb->delete( + $wpdb->prefix . 'posts', + array( + 'post_type' => 'patterns_ai_data', + 'post_title' => 'Patterns AI Data', + ), + array( '%s', '%s' ) + ); + return true; } diff --git a/plugins/woocommerce-beta-tester/changelog/fix-remove_patterns_ai_data_post_reset_cys b/plugins/woocommerce-beta-tester/changelog/fix-remove_patterns_ai_data_post_reset_cys new file mode 100644 index 00000000000..82442e8f911 --- /dev/null +++ b/plugins/woocommerce-beta-tester/changelog/fix-remove_patterns_ai_data_post_reset_cys @@ -0,0 +1,4 @@ +Significance: minor +Type: update + +WooCommerce Beta Tester - CYS: implement removing patterns_ai_data post type diff --git a/plugins/woocommerce-beta-tester/src/tools/data/actions.js b/plugins/woocommerce-beta-tester/src/tools/data/actions.js index 56556a50632..66a05cbb98a 100644 --- a/plugins/woocommerce-beta-tester/src/tools/data/actions.js +++ b/plugins/woocommerce-beta-tester/src/tools/data/actions.js @@ -217,7 +217,6 @@ export function* resetCustomizeYourStore() { 'woocommerce_customize_store_onboarding_tour_hidden', 'woocommerce_admin_customize_store_completed', 'woocommerce_admin_customize_store_completed_theme_id', - 'wc_blocks_patterns_content', ]; yield apiFetch( { method: 'DELETE',