Yoast\WP\SEO\Config
SEMrush_Client::store_token() public Yoast 1.0
Stores the passed token.
{} Это метод класса: SEMrush_Client{}
Хуков нет.
Возвращает
SEMrush_Token
. The stored token.
Использование
$SEMrush_Client = new SEMrush_Client(); $SEMrush_Client->store_token( $token );
- $token(SEMrush_Token) (обязательный)
- The token to store.
Код SEMrush_Client::store_token() SEMrush Client::store token Yoast 16.1.1
public function store_token( SEMrush_Token $token ) {
$saved = $this->options_helper->set( self::TOKEN_OPTION, $token->to_array() );
if ( $saved === false ) {
throw new Failed_Storage_Exception();
}
return $token;
}