WordPress at Your Fingertips
function is not described

ActionScheduler::is_class_migration() protected WC 3.0.0

Determine if the class is one of our migration classes.

{} It's a method of the class: ActionScheduler{}

No Hooks.

Return

true|false.

Usage

$result = ActionScheduler::is_class_migration( $class );
$class(string) (required)
The class name.

Changelog

Since 3.0.0 Introduced.

Code of ActionScheduler::is_class_migration() WC 6.1.1

protected static function is_class_migration( $class ) {
	static $migration_segments = array(
		'ActionMigrator'  => true,
		'BatchFetcher'    => true,
		'DBStoreMigrator' => true,
		'DryRun'          => true,
		'LogMigrator'     => true,
		'Config'          => true,
		'Controller'      => true,
		'Runner'          => true,
		'Scheduler'       => true,
	);

	$segments = explode( '_', $class );
	$segment = isset( $segments[ 1 ] ) ? $segments[ 1 ] : $class;

	return isset( $migration_segments[ $segment ] ) && $migration_segments[ $segment ];
}