Yoast\WP\SEO\MyYoast_Client\Application
MyYoast_Client::get_authorization_url
Builds the authorization URL for the user authorization flow.
Метод класса: MyYoast_Client{}
Хуков нет.
Возвращает
Строку. The authorization URL.
Использование
$MyYoast_Client = new MyYoast_Client(); $MyYoast_Client->get_authorization_url( $user_id, $redirect_uri, $scopes, ?string $return_url ): string;
- $user_id(int) (обязательный)
- The WordPress user ID.
- $redirect_uri(строка) (обязательный)
- The callback redirect URI.
- $scopes(string[])
- The scopes to request.
По умолчанию:[] - ?string $return_url
- .
По умолчанию:null
Код MyYoast_Client::get_authorization_url() MyYoast Client::get authorization url Yoast 27.8
public function get_authorization_url( int $user_id, string $redirect_uri, array $scopes = [], ?string $return_url = null ): string {
return $this->auth_code_handler->get_authorization_url( $user_id, $redirect_uri, $scopes, $return_url );
}