[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/ -> class-wp-http-requests-hooks.php (summary)

HTTP API: Requests hook bridge class

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

Defines 1 class

WP_HTTP_Requests_Hooks:: (2 methods):
  __construct()
  dispatch()


Class: WP_HTTP_Requests_Hooks  - X-Ref

Bridge to connect Requests internal hooks to WordPress actions.

__construct( $url, $request )   X-Ref
Constructor.

param: string $url     URL to request.
param: array  $request Request data in WP_Http format.

dispatch( $hook, $parameters = array()   X-Ref
Dispatch a Requests hook to a native WordPress action.

return: bool True if hooks were run, false if nothing was hooked.
param: string $hook       Hook name.
param: array  $parameters Parameters to pass to callbacks.



Generated: Thu Nov 21 01:00:03 2024 Cross-referenced by PHPXref 0.7.1