ActionScheduler_Versions::active_source()publicWC 1.0

Deprecated from version 3.9.2. It is no longer supported and can be removed in future releases. Use ActionScheduler_SystemInformation::active_source() instead.

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',
]

Method of the class: ActionScheduler_Versions{}

No Hooks.

Return

Array.

Usage

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

Changelog

Deprecated since 3.9.2 Use ActionScheduler_SystemInformation::active_source().

ActionScheduler_Versions::active_source() code WC 9.8.1

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