Requests_Proxy_HTTP::register() public WP 1.6
Register the necessary callbacks
{} Это метод класса: Requests_Proxy_HTTP{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
$Requests_Proxy_HTTP = new Requests_Proxy_HTTP(); $Requests_Proxy_HTTP->register( $hooks );
- $hooks(Requests_Hooks) (обязательный)
- Hook system
Заметки
- Смотрите: curl_before_send
- Смотрите: fsockopen_remote_socket
- Смотрите: fsockopen_remote_host_path
- Смотрите: fsockopen_header
Список изменений
С версии 1.6 | Введена. |
Код Requests_Proxy_HTTP::register() Requests Proxy HTTP::register WP 5.6.2
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'));
}
}