Added an update task to increase the database version
This commit is contained in:
parent
1ac8eebac3
commit
c34a5b6ffe
|
@ -138,6 +138,7 @@ class WC_Install {
|
|||
'3.9.0' => array(
|
||||
'wc_update_390_remove_maxmind_database',
|
||||
'wc_update_390_change_geolocation_database_update_cron',
|
||||
'wc_update_390_db_version',
|
||||
),
|
||||
);
|
||||
|
||||
|
|
|
@ -2063,3 +2063,10 @@ function wc_update_390_change_geolocation_database_update_cron() {
|
|||
wp_clear_scheduled_hook( 'woocommerce_geoip_updater' );
|
||||
wp_schedule_event( time() + MINUTE_IN_SECONDS, 'fifteendays', 'woocommerce_geoip_updater' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Update DB version.
|
||||
*/
|
||||
function wc_update_390_db_version() {
|
||||
WC_Install::update_db_version( '3.9.0' );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue