Yoast\WP\SEO\Config

OAuth_Client::store_token()publicYoast 1.0

Stores the passed token.

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

Хуков нет.

Возвращает

OAuth_Token. The stored token.

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

$OAuth_Client = new OAuth_Client();
$OAuth_Client->store_token( $token );
$token(OAuth_Token) (обязательный)
The token to store.

Код OAuth_Client::store_token() Yoast 22.3

public function store_token( OAuth_Token $token ) {
	$saved = $this->options_helper->set( $this->token_option, $token->to_array() );

	if ( $saved === false ) {
		throw new Failed_Storage_Exception();
	}

	return $token;
}