ActionScheduler_Versions::active_sourcepublicWC 1.0

Устарела с версии 3.9.2. Больше не поддерживается и может быть удалена. Используйте ActionScheduler_SystemInformation::active_source().

Returns information about the plugin or theme which contains the current active version of Action Scheduler.

If this cannot be determined, or if Action Scheduler is being loaded via some other method, then it will return an empty array. Otherwise, if populated, the array will look like the following:

[
	'type' => 'plugin', # or 'theme'
	'name' => 'Name',
]

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

Хуков нет.

Возвращает

array.

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

$ActionScheduler_Versions = new ActionScheduler_Versions();
$ActionScheduler_Versions->active_source(): array;

Список изменений

Устарела с 3.9.2 Use ActionScheduler_SystemInformation::active_source().

Код ActionScheduler_Versions::active_source() WC 11.1.1

public function active_source(): array {
	_deprecated_function( __METHOD__, '3.9.2', 'ActionScheduler_SystemInformation::active_source()' );
	return ActionScheduler_SystemInformation::active_source();
}