Action_Scheduler\Migration

Scheduler::is_migration_scheduled()publicWC 1.0

Get a flag indicating whether the migration is scheduled.

Method of the class: Scheduler{}

No Hooks.

Return

true|false. Whether there is a pending action in the store to handle the migration

Usage

$Scheduler = new Scheduler();
$Scheduler->is_migration_scheduled();

Scheduler::is_migration_scheduled() code WC 8.7.0

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

	return ! empty( $next );
}