Méthode | Description | |
---|---|---|
register_hooks ( boolean | array $prefixes = false ) | Register hooks |
Méthode | Description | |
---|---|---|
add_action ( string $hook, string $method = null, integer $priority = 10, $params = null, string $class = null ) | Add a method as a action | |
add_filter ( string $hook, string $method = null, integer $priority = 10, $params = null, string $class = null ) | Add a method as a filter |
Méthode | Description | |
---|---|---|
check_eaccelerator_saneness ( ) : boolean | Check if eAccelerator is loaded, and if so, is sane |
protected static add_action ( string $hook, string $method = null, integer $priority = 10, $params = null, string $class = null ) | ||
$hook | string | Action name |
$method | string | Method name on current class, or priority (as an int) |
$priority | integer | Specify the order in which the functions associated with a particular action are executed (default: 10) |
$class | string | Internal use only |
protected static add_filter ( string $hook, string $method = null, integer $priority = 10, $params = null, string $class = null ) | ||
$hook | string | Filter name |
$method | string | Method name on current class, or priority (as an int) |
$priority | integer | Specify the order in which the functions associated with a particular action are executed (default: 10) |
$class | string | Internal use only |
public static register_hooks ( boolean | array $prefixes = false ) | ||
$prefixes | boolean | array | True for default (`action_`/`filter_`), array with keys "action" & "filter" or false |