Method |
Description |
|
add ( string $hook, Closure | string $callback, integer $priority = 10, integer $accepted_args = 2 ) : mixed |
Add event using the WordPress hooks. |
|
exists ( string $hook ) : boolean |
Check if a registered hook exists. |
|
getCallback ( string $hook ) : array | boolean |
Return the callback registered with the given hook. |
|
remove ( string $hook, integer $priority = 10, Closure | string $callback = null ) : mixed |
Remove a defined action or filter. |
|
run ( string $hook, mixed $args = null ) : mixed |
Run all events registered with the hook. |
|