ActionScheduler::is_class_abstract()protected staticWC 3.0.0

Determine if the class is one of our abstract classes.

Method of the class: ActionScheduler{}

No Hooks.

Return

true|false.

Usage

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

Changelog

Since 3.0.0 Introduced.

ActionScheduler::is_class_abstract() code WC 9.3.3

protected static function is_class_abstract( $class ) {
	static $abstracts = array(
		'ActionScheduler'                            => true,
		'ActionScheduler_Abstract_ListTable'         => true,
		'ActionScheduler_Abstract_QueueRunner'       => true,
		'ActionScheduler_Abstract_Schedule'          => true,
		'ActionScheduler_Abstract_RecurringSchedule' => true,
		'ActionScheduler_Lock'                       => true,
		'ActionScheduler_Logger'                     => true,
		'ActionScheduler_Abstract_Schema'            => true,
		'ActionScheduler_Store'                      => true,
		'ActionScheduler_TimezoneHelper'             => true,
	);

	return isset( $abstracts[ $class ] ) && $abstracts[ $class ];
}