Action_Scheduler\Migration
Scheduler::is_migration_scheduled
Get a flag indicating whether the migration is scheduled.
Метод класса: Scheduler{}
Хуков нет.
Возвращает
true|false. Whether there is a pending action in the store to handle the migration
Использование
$Scheduler = new Scheduler(); $Scheduler->is_migration_scheduled();
Код Scheduler::is_migration_scheduled() Scheduler::is migration scheduled WC 10.5.0
public function is_migration_scheduled() {
$next = as_next_scheduled_action( self::HOOK );
return ! empty( $next );
}