Yoast\WP\SEO\MyYoast_Client\Application

MyYoast_Client::get_authorization_url │ public │ Yoast 1.0

Builds the authorization URL for the user authorization flow.

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

Хуков нет.

Возвращает

string. The authorization URL.

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

$MyYoast_Client = new MyYoast_Client();
$MyYoast_Client->get_authorization_url( $user_id, $scopes, ?string $resource_indicator, ?string $return_url ): string;
$user_id(int) (обязательный)
The WordPress user ID.
$scopes(string[])
The scopes to request.
По умолчанию: []
?string $resource_indicator
.
По умолчанию: null
?string $return_url
.
По умолчанию: null

Код MyYoast_Client::get_authorization_url() Yoast 28.9

public function get_authorization_url( int $user_id, array $scopes = [], ?string $resource_indicator = null, ?string $return_url = null ): string {
	return $this->auth_code_handler->get_authorization_url( $user_id, $scopes, new Resource_Indicator( $resource_indicator ), $return_url );
}