Add version 1.3.0 option update callback. (https://github.com/woocommerce/woocommerce-admin/pull/4668)
This commit is contained in:
parent
a3b89c8867
commit
32c99fa4ea
|
@ -100,3 +100,10 @@ function wc_admin_update_130_remove_dismiss_action_from_tracking_opt_in_note() {
|
|||
|
||||
$wpdb->query( "DELETE actions FROM {$wpdb->prefix}wc_admin_note_actions actions INNER JOIN {$wpdb->prefix}wc_admin_notes notes USING (note_id) WHERE actions.name = 'tracking-dismiss' AND notes.name = 'wc-admin-usage-tracking-opt-in'" );
|
||||
}
|
||||
|
||||
/**
|
||||
* Update DB Version.
|
||||
*/
|
||||
function wc_admin_update_130_db_version() {
|
||||
Installer::update_db_version( '1.3.0' );
|
||||
}
|
||||
|
|
|
@ -46,6 +46,7 @@ class Install {
|
|||
),
|
||||
'1.3.0' => array(
|
||||
'wc_admin_update_130_remove_dismiss_action_from_tracking_opt_in_note',
|
||||
'wc_admin_update_130_db_version',
|
||||
),
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue