WPSEO_Upgrade::add_upgrade_history()
Adds a new upgrade history entry.
Метод класса: WPSEO_Upgrade{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->add_upgrade_history( $current_version, $new_version );
- $current_version(строка) (обязательный)
- The old version from which we are upgrading.
- $new_version(строка) (обязательный)
- The version we are upgrading to.
Код WPSEO_Upgrade::add_upgrade_history() WPSEO Upgrade::add upgrade history Yoast 24.9
protected function add_upgrade_history( $current_version, $new_version ) { $upgrade_history = new WPSEO_Upgrade_History(); $upgrade_history->add( $current_version, $new_version, array_keys( WPSEO_Options::$options ) ); }