메소드 |
설명 |
|
_autoload ( $class ) |
Autoload function to load plugin file from classname |
|
act ( string $hookname, mixed $param = null ) |
Call to execute a plugin action |
|
act_id ( string $hookname, mixed $param = null ) |
Call to execute a plugin action, by id |
|
activate_plugin ( $file ) |
Activates a plugin file |
|
changed_since_last_activation ( ) : boolean |
Detects whether the plugins that exist have changed since they were last
activated. |
|
check_every_plugin_syntax ( ) : boolean |
Check the PHP syntax of every plugin available, activated or not. |
|
class_from_filename ( string $file, boolean $check_realpath = false ) : string |
function class_from_filename
returns the class name from a plugin's filename |
|
deactivate_plugin ( string $file, boolean $force = false ) : boolean |
Deactivates a plugin file |
|
extends_plugin ( $class ) : boolean |
Get classes that extend Plugin. |
|
filter ( string $hookname, mixed $param ) : mixed |
Call to execute a plugin filter |
|
filter_id ( string $hookname, string $id, mixed $param ) : mixed |
Call to execute a plugin filter on a specific plugin, by id |
|
get_active ( ) : array |
Returns the internally stored references to all loaded plugins |
|
get_by_interface ( string $interface ) : array |
Get references to plugin objects that implement a specific interface |
|
get_plugin_classes ( ) |
|
|
id_from_file ( string $file ) : string |
Returns a plugin id for the filename specified. |
|
implemented ( string $hookname, string $searchtype = null ) : array | boolean |
Determine if a hook of any type is implemented |
|
is_loaded ( string $name, string $version = null ) : boolean |
Verify if a plugin is loaded. |
|
list_active ( boolean $refresh = false ) : array |
function list_active
Gets a list of active plugin filenames to be included |
|
list_all ( ) : array |
function list_all
Gets a list of all plugin filenames that are available |
|
load ( string $class, boolean $activate = true ) : Plugin |
Load a pluign into memory by class name |
|
load_active ( ) |
Instantiate and load all active plugins |
|
load_from_file ( string $file, boolean $activate = true ) : Plugin |
Initialize all loaded plugins by calling their load() method |
|
load_info ( string $file ) : SimpleXMLElement |
Return the info XML for a plugin based on a filename |
|
plugin_ui ( string $configure, $configaction ) |
Produce the UI for a plugin based on the user's selected config option |
|
provided ( null | string $exclude = null, boolean $include_inactive = false, boolean $use_file = false ) : array |
Get a list of features and the active plugins that provide that feature |
|
register ( Callable $fn, string $type, string $hook, integer $priority = 8 ) |
function register
Registers a plugin action for possible execution |
|
set_present ( ) |
Stores the list of plugins that are present (not necessarily active) in
the Options table for future comparison. |
|
theme ( string $hookname, mixed $param ) : mixed |
Call to execute a theme function |
|
theme_implemented ( string $hookname ) : boolean |
Determine if any plugin implements the indicated theme hook |
|
upgrade ( ) |
Upgrade all loaded plugins |
|
xmlrpc ( string $hookname, mixed $param ) : boolean | mixed |
Call to execute an XMLRPC function |
|