[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

Handles adding and dispatching events

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

Defines 1 class

Hooks:: (3 methods):
  register()
  dispatch()
  __wakeup()


Class: Hooks  - X-Ref

Handles adding and dispatching events

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

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

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

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

__wakeup()   X-Ref
No description



Generated : Sat Dec 21 08:20:01 2024 Cross-referenced by PHPXref