WpOrg\Requests
HookManager::dispatch()
Dispatch a message
Method of the class: HookManager{}
No Hooks.
Return
true|false
. Successfulness
Usage
$HookManager = new HookManager(); $HookManager->dispatch( $hook, $parameters );
- $hook(string) (required)
- Hook name
- $parameters(array)
- Parameters to pass to callbacks
Default: []
HookManager::dispatch() HookManager::dispatch code WP 6.6.2
public function dispatch($hook, $parameters = []);