[ Index ]

WordPress 5.4.1

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/wp-includes/Requests/ -> Hooks.php (summary)

Handles adding and dispatching events

File Size: 68 lines (1 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Requests_Hooks:: (3 methods):
  __construct()
  register()
  dispatch()


Class: Requests_Hooks  - X-Ref

Handles adding and dispatching events

__construct()   X-Ref
Constructor


register($hook, $callback, $priority = 0)   X-Ref
Register a callback for a hook

param: string $hook Hook name
param: callback $callback Function/method to call on event
param: int $priority Priority number. <0 is executed earlier, >0 is executed later

dispatch($hook, $parameters = array()   X-Ref
Dispatch a message

param: string $hook Hook name
param: array $parameters Parameters to pass to callbacks
return: boolean Successfulness



Generated: Tue May 19 15:51:04 2020 Cross-referenced by PHPXref 0.7.1