WPSEO_Upgrade::move_indexables_indexation_reason_for_151()protectedYoast 1.0

Moves the indexables_indexation_reason option to the renamed indexing_reason option.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->move_indexables_indexation_reason_for_151();

Код WPSEO_Upgrade::move_indexables_indexation_reason_for_151() Yoast 22.1

protected function move_indexables_indexation_reason_for_151() {
	$reason = WPSEO_Options::get( 'indexables_indexation_reason', '' );
	WPSEO_Options::set( 'indexing_reason', $reason );
}