WpOrg\Requests\Auth
Basic::register()
Register the necessary callbacks
Method of the class: Basic{}
No Hooks.
Return
null
. Nothing (null).
Usage
$Basic = new Basic(); $Basic->register( $hooks );
- $hooks(\WpOrg\Requests\Hooks) (required)
- Hook system
Notes
- See: \WpOrg\Requests\Auth[Basic::curl_before_send()](/function/Basic::curl_before_send)
- See: \WpOrg\Requests\Auth[Basic::fsockopen_header()](/function/Basic::fsockopen_header)
Basic::register() Basic::register code WP 6.6.2
public function register(Hooks $hooks) { $hooks->register('curl.before_send', [$this, 'curl_before_send']); $hooks->register('fsockopen.after_headers', [$this, 'fsockopen_header']); }