Delivery setup
This commit is contained in:
@@ -5,9 +5,18 @@ defined( 'ABSPATH' ) || exit;
|
||||
class Wiaas_DB_Update {
|
||||
|
||||
private static $db_updates = array(
|
||||
'20180728222206' => 'wiaas_db_update_enable_product_by_user_role'
|
||||
'20180728222206' => 'wiaas_db_update_enable_product_by_user_role',
|
||||
'20180801222206' => 'wiaas_db_update_setup_gravity',
|
||||
'20180802222206' => 'wiaas_db_update_add_delivery_process_forms'
|
||||
);
|
||||
|
||||
public static function execute() {
|
||||
$pending_db_updates = self::get_pending_db_updates();
|
||||
foreach ( $pending_db_updates as $update_callback ) {
|
||||
self::execute_update($update_callback);
|
||||
}
|
||||
}
|
||||
|
||||
public static function get_pending_db_updates() {
|
||||
$active_db_version = get_option( 'wiaas_db_version', '0' );
|
||||
$pending_db_updates = array();
|
||||
|
||||
Reference in New Issue
Block a user