PHPMailer\PHPMailer

OAuth::__construct │ public │ WP 1.0

OAuth constructor.

Метод класса: OAuth{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$OAuth = new OAuth();
$OAuth->__construct( $options );
$options(массив) (обязательный)
Associative array containing provider, userName, clientSecret, clientId and refreshToken elements.

Код OAuth::__construct() WP 7.1.3

public function __construct($options)
{
    $this->provider = $options['provider'];
    $this->oauthUserEmail = $options['userName'];
    $this->oauthClientSecret = $options['clientSecret'];
    $this->oauthClientId = $options['clientId'];
    $this->oauthRefreshToken = $options['refreshToken'];
}