Yoast\WP\SEO\MyYoast_Client\Application
Authorization_Code_Handler::get_return_url
Returns the stored return URL for a pending authorization flow.
Метод класса: Authorization_Code_Handler{}
Хуков нет.
Возвращает
string|null. The return URL, or null if not set or no pending flow.
Использование
$Authorization_Code_Handler = new Authorization_Code_Handler(); $Authorization_Code_Handler->get_return_url( $user_id ): ?string;
- $user_id(int) (обязательный)
- The WordPress user ID.
Код Authorization_Code_Handler::get_return_url() Authorization Code Handler::get return url Yoast 28.9
public function get_return_url( int $user_id ): ?string {
try {
return $this->get_flow_state( $user_id )->get_return_url();
} catch ( Token_Request_Failed_Exception $e ) {
return null;
}
}