Yoast\WP\SEO\Values\OAuth

OAuth_Token::to_array()publicYoast 1.0

Converts the object to an array.

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

Хуков нет.

Возвращает

Массив. The converted object.

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

$OAuth_Token = new OAuth_Token();
$OAuth_Token->to_array();

Код OAuth_Token::to_array() Yoast 22.4

public function to_array() {
	return [
		'access_token'  => $this->access_token,
		'refresh_token' => $this->refresh_token,
		'expires'       => $this->expires,
		'has_expired'   => $this->has_expired(),
		'created_at'    => $this->created_at,
		'error_count'   => $this->error_count,
	];
}