action_scheduler_initialize_3_dot_8_dot_2()WC 1.0

Initializes this version of Action Scheduler.

Хуков нет.

Возвращает

null. Ничего (null).

Использование

action_scheduler_initialize_3_dot_8_dot_2() // WRCS: DEFINED_VERSION.;

Код action_scheduler_initialize_3_dot_8_dot_2() WC 9.4.2

function action_scheduler_initialize_3_dot_8_dot_2() { // WRCS: DEFINED_VERSION.
	// A final safety check is required even here, because historic versions of Action Scheduler
	// followed a different pattern (in some unusual cases, we could reach this point and the
	// ActionScheduler class is already defined—so we need to guard against that).
	if ( ! class_exists( 'ActionScheduler', false ) ) {
		require_once __DIR__ . '/classes/abstracts/ActionScheduler.php';
		ActionScheduler::init( __FILE__ );
	}
}