芝麻web文件管理V1.00
编辑当前文件:/home/seolotod/sthwholesaler.com/wp-content/plugins/woo-alidropship/admin/migrate-new-table.php
is_queue_empty() && ! $migrate_process->is_process_running() ) { $migrate_process->push_to_queue( [ 'step' => 'move' ] ); $migrate_process->save()->dispatch(); } wp_send_json_success( esc_html__( 'Migration progress has started running in the background.', 'woo-alidropship' ) ); } public function remove_old_data() { check_ajax_referer( 'woo_alidropship_admin_ajax', '_vi_wad_ajax_nonce' ); $migrate_process = new VI_WOO_ALIDROPSHIP_BACKGROUND_MIGRATE_NEW_TABLE(); if ( $migrate_process->is_queue_empty() && ! $migrate_process->is_process_running() ) { $migrate_process->push_to_queue( [ 'step' => 'delete' ] ); $migrate_process->save()->dispatch(); } wp_send_json_success( esc_html__( 'Deletion progress has started running in the background.', 'woo-alidropship' ) ); } public function background_process() { self::$migrate_process = new VI_WOO_ALIDROPSHIP_BACKGROUND_MIGRATE_NEW_TABLE(); if ( ! self::$migrate_process->is_queue_empty() || self::$migrate_process->is_process_running() ) { // error_log( print_r( $migrate_process, true ) ); } } public static function migrate_process() { return self::$migrate_process; } }