ActionScheduler::is_initialized()public staticWC 1.0

Check whether the AS data store has been initialized.

Метод класса: ActionScheduler{}

Хуков нет.

Возвращает

true|false.

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

$result = ActionScheduler::is_initialized( $function_name );
$function_name(строка)
The name of the function being called. Optional.
По умолчанию: null

Код ActionScheduler::is_initialized() WC 8.9.3

public static function is_initialized( $function_name = null ) {
	if ( ! self::$data_store_initialized && ! empty( $function_name ) ) {
		$message = sprintf(
			/* translators: %s function name. */
			__( '%s() was called before the Action Scheduler data store was initialized', 'woocommerce' ),
			esc_attr( $function_name )
		);
		_doing_it_wrong( $function_name, $message, '3.1.6' );
	}

	return self::$data_store_initialized;
}