Requests_Auth_Basic::register() WordPress Method
The Requests_Auth_Basic::register() method is a static method used to register an authentication handler class for use with the Requests library. This method is typically used by custom authentication handler classes that implement the Requests_Auth interface.
Requests_Auth_Basic::register( Requests_Hooks $hooks ) #
Register the necessary callbacks
Description
See also
Parameters
- $hooks
(Requests_Hooks)(Required)Hook system
Source
File: wp-includes/Requests/Auth/Basic.php
public function register(Requests_Hooks $hooks) { $hooks->register('curl.before_send', array($this, 'curl_before_send')); $hooks->register('fsockopen.after_headers', array($this, 'fsockopen_header')); }
Expand full source codeCollapse full source codeView on TracView on GitHub