WPSEO_Upgrade_History::get()publicYoast 1.0

Retrieves the content of the history items currently stored.

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

Хуков нет.

Возвращает

Массив. The contents of the history option.

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

$WPSEO_Upgrade_History = new WPSEO_Upgrade_History();
$WPSEO_Upgrade_History->get();

Код WPSEO_Upgrade_History::get() Yoast 22.3

public function get() {
	$data = get_option( $this->get_option_name(), [] );
	if ( ! is_array( $data ) ) {
		return [];
	}

	return $data;
}