WPSEO_Upgrade::upgrade_226()privateYoast 1.0

Performs the 22.6 upgrade routine. Schedules another cleanup scheduled action, but starting from the last cleanup action we just added (if there aren't any running cleanups already).

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

Хуков нет.

Возвращает

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

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

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

Код WPSEO_Upgrade::upgrade_226() Yoast 24.9

private function upgrade_226() {
	if ( get_option( Cleanup_Integration::CURRENT_TASK_OPTION ) === false ) {
		$cleanup_integration = YoastSEO()->classes->get( Cleanup_Integration::class );
		$cleanup_integration->start_cron_job( 'clean_selected_empty_usermeta', DAY_IN_SECONDS );
	}
}