WooCommerce Beta Tester - CYS: implement removing patterns_ai_data post type (#41285)

* WooCommerce Beta Tester - CSY: implement removing patterns_ai_data post type

* add changelog

* Update changelog
This commit is contained in:
Luigi Teschio 2023-11-08 12:07:30 +01:00 committed by GitHub
parent 54a00b282a
commit 762f6847e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 1 deletions

View File

@ -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;
}

View File

@ -0,0 +1,4 @@
Significance: minor
Type: update
WooCommerce Beta Tester - CYS: implement removing patterns_ai_data post type

View File

@ -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',