Requests_Proxy_HTTP::register( Requests_Hooks $hooks )
Register the necessary callbacks
Description
See also
Parameters
- $hooks
-
(Requests_Hooks) (Required) Hook system
Source
File: wp-includes/Requests/Proxy/HTTP.php
public function register(Requests_Hooks $hooks) {
$hooks->register('curl.before_send', array($this, 'curl_before_send'));
$hooks->register('fsockopen.remote_socket', array($this, 'fsockopen_remote_socket'));
$hooks->register('fsockopen.remote_host_path', array($this, 'fsockopen_remote_host_path'));
if ($this->use_authentication) {
$hooks->register('fsockopen.after_headers', array($this, 'fsockopen_header'));
}
} Changelog
| Version | Description |
|---|---|
| 1.6 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/requests_proxy_http/register