\ActionScheduler_SystemInformation

Provides information about active and registered instances of Action Scheduler.

Summary

Methods
Properties
Constants
active_source()
active_source_path()
get_sources()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

active_source()

active_source() : array

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

Returns

array

active_source_path()

active_source_path() : string

Returns the directory path for the currently active installation of Action Scheduler.

Returns

string

get_sources()

get_sources() : array<string,string>

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.

Returns

array