WPDev.one
Core Class

Basic

class Basic // Constructor: function Object() { [native code] }

Basic Authentication provider

Methods 5 methods

Method / Return Description
__construct()
void

Constructor

Parameters: $args: mixed
register()
void

Register the necessary callbacks

Parameters: $hooks: Hooks
curl_before_send()
void

Set cURL parameters before the data is sent

Parameters: $handle: mixed
fsockopen_header()
void

Add extra headers to the request before sending

Parameters: $out: mixed
getAuthString()
string

Get the authentication string (user:pass)

Properties

Property / Type Description
$user
mixed
public
No description available.
$pass
mixed
public
No description available.

Class Information

Source File
wp-includes/Requests/src/Auth/Basic.php
Advertisement