ActionScheduler_SystemInformation::get_sources()public staticWC 1.0

Get registered sources.

It is not always possible to obtain this information. For instance, if earlier versions (<=3.9.0) of Action Scheduler register themselves first, then the necessary data about registered sources will not be available.

Method of the class: ActionScheduler_SystemInformation{}

No Hooks.

Return

Array. string>

Usage

$result = ActionScheduler_SystemInformation::get_sources();

ActionScheduler_SystemInformation::get_sources() code WC 9.8.1

public static function get_sources() {
	$versions = ActionScheduler_Versions::instance();
	return method_exists( $versions, 'get_sources' ) ? $versions->get_sources() : array();
}