function act
Call to execute a plugin action
static
void
act
(string 0, mixed 1)
-
string
0: The name of the action to execute
-
mixed
1: Optional arguments needed for action
Activates a plugin file
static
void
activate_plugin
( $file)
Detects whether the plugins that exist have changed since they were last activated.
static
boolean
changed_since_last_activation
()
function class_from_filename
returns the class name from a plugin's filename
static
string
class_from_filename
(string $file, [bool $check_realpath = false])
-
string
$file: the full path to a plugin file
-
bool
$check_realpath: whether or not to try realpath resolution
Deactivates a plugin file
static
void
deactivate_plugin
( $file)
Get classes that extend Plugin.
static
boolean
extends_plugin
($class $class)
-
$class
$class: string A class name
function filter
Call to execute a plugin filter
static
void
filter
(string 0, mixed 1)
-
string
0: The name of the filter to execute
-
mixed
1: The value to filter.
function get_active
Returns the internally stored references to all loaded plugins
static
array
get_active
()
Get references to plugin objects that implement a specific interface
static
array
get_by_interface
(string $interface)
-
string
$interface: The interface to check for
static
void
get_plugin_classes
()
Returns a plugin id for the filename specified.
Used to unify the way plugin ids are generated, rather than spreading the calls internal to this function over several files.
static
string
id_from_file
(string $file)
-
string
$file: The filename to generate an id for
Verify if a plugin is loaded.
You may supply an optional argument $version as a minimum version requirement.
static
bool
is_loaded
(string $name, [string $version = NULL])
-
string
$name: Name or class name of the plugin to find.
-
string
$version: Optional minimal version of the plugin.
function list_active
Gets a list of active plugin filenames to be included
static
array
list_active
([boolean $refresh = false])
-
boolean
$refresh: Whether to refresh the cached array. Default FALSE
function list_all
Gets a list of all plugin filenames that are available
static
array
list_all
()
function load
Initialize all loaded plugins by calling their load() method
static
Plugin
load
(
string $file, [
boolean $activate =
true])
-
string
$file: the class name to load
-
boolean
$activate: True if the plugin's load() method should be called
function register
Registers a plugin action for possible execution
static
void
register
(mixed $fn, string $type, string $hook, [hex $priority = 8])
-
mixed
$fn: A reference to the function to register by string or array(object, string)
-
string
$type: Usually either 'filter' or 'action' depending on the hook type.
-
string
$hook: The plugin hook to register
-
hex
$priority: An optional execution priority, in hex. The lower the priority, the earlier the function will execute in the chain. Default value = 8.
Stores the list of plugins that are present (not necessarily active) in the Options table for future comparison.
static
void
set_present
()
Call to execute a theme function
static
The
theme
(string 0, mixed 1)
-
string
0: The name of the filter to execute
-
mixed
1: The value to filter
Determine if any plugin implements the indicated theme hook
static
boolean
theme_implemented
(string $hookname)
-
string
$hookname: The name of the hook to check for
Call to execute an XMLRPC function
static
void
xmlrpc
(string 0, mixed 1)
-
string
0: The name of the filter to execute
-
mixed
1: The value to filter.
Check the PHP syntax of every plugin available, activated or not.
bool
check_every_plugin_syntax
()