Action_Scheduler\Migration

Scheduler::is_migration_scheduled()publicWC 1.0

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() WC 7.1.0

public function is_migration_scheduled() {
	$next = as_next_scheduled_action( self::HOOK );

	return ! empty( $next );
}