WPSEO_Upgrade_History::get
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() WPSEO Upgrade History::get Yoast 27.4
public function get() {
$data = get_option( $this->get_option_name(), [] );
if ( ! is_array( $data ) ) {
return [];
}
return $data;
}