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

Top ↑

See also


Top ↑

Parameters

$hooks

(Requests_Hooks)(Required)Hook system


Top ↑

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'));
	}

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.