Yoast\WP\SEO\MyYoast_Client\Application\Grants

Client_Credentials_Grant::__constructpublicYoast 1.0

Client_Credentials_Grant constructor.

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

Хуков нет.

Возвращает

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

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

$Client_Credentials_Grant = new Client_Credentials_Grant();
$Client_Credentials_Grant->__construct( $scopes, $site_url );
$scopes(string[]) (обязательный)
The scopes to request.
$site_url(строка) (обязательный)
The site URL.

Код Client_Credentials_Grant::__construct() Yoast 27.7

public function __construct( array $scopes, string $site_url ) {
	$this->scopes   = $scopes;
	$this->site_url = $site_url;
}