Run wc_update_900_add_launch_your_store_tour_option on WC 9.0 update (#47634)

* Run wc_update_900_add_launch_your_store_tour_option on WC 9.0 update

* Add changefile(s) from automation for the following project(s): woocommerce

* Use add_option

* Lint fixes

---------

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Moon 2024-05-22 07:15:33 +12:00 committed by GitHub
parent fcc4c33726
commit 363d761eae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,4 @@
Significance: minor
Type: update
Add a new update function for WC 9.0 to add woocommerce_show_lys_tour option.

View File

@ -255,6 +255,9 @@ class WC_Install {
'8.9.1' => array(
'wc_update_891_create_plugin_autoinstall_history_option',
),
'9.0.0' => array(
'wc_update_900_add_launch_your_store_tour_option',
),
);
/**

View File

@ -2724,3 +2724,10 @@ function wc_update_891_create_plugin_autoinstall_history_option() {
}
}
}
/**
* Add woocommerce_show_lys_tour.
*/
function wc_update_900_add_launch_your_store_tour_option() {
add_option( 'woocommerce_show_lys_tour', 'yes' );
}