WPSEO_Upgrade::upgrade_20()
Moves options that moved position in WPSEO 2.0.
Метод класса: WPSEO_Upgrade{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
// private - только в коде основоного (родительского) класса $result = $this->upgrade_20();
Код WPSEO_Upgrade::upgrade_20() WPSEO Upgrade::upgrade 20 Yoast 22.1
private function upgrade_20() { /** * Clean up stray wpseo_ms options from the options table, option should only exist in the sitemeta table. * This could have been caused in many version of Yoast SEO, so deleting it for everything below 2.0. */ delete_option( 'wpseo_ms' ); $wpseo = $this->get_option_from_database( 'wpseo' ); $this->save_option_setting( $wpseo, 'pinterestverify' ); // Re-save option to trigger sanitization. $this->cleanup_option_data( 'wpseo' ); }