Yoast\WP\SEO\MyYoast_Client\Application
Authorization_Code_Handler::discard_flow_state
Discards any pending authorization-flow state for a user.
Used when the provider returns an error (e.g. the user denied consent) so a stale flow can't be resumed. A no-op when no flow is pending.
Метод класса: Authorization_Code_Handler{}
Хуков нет.
Возвращает
void. Ничего (null).
Использование
$Authorization_Code_Handler = new Authorization_Code_Handler(); $Authorization_Code_Handler->discard_flow_state( $user_id ): void;
- $user_id(int) (обязательный)
- The WordPress user ID.
Код Authorization_Code_Handler::discard_flow_state() Authorization Code Handler::discard flow state Yoast 28.9
public function discard_flow_state( int $user_id ): void {
$this->expiring_store->delete_for_user( self::CURRENT_AUTH_FLOW_STATE_KEY, $user_id );
}