wp_schedule_delete_old_privacy_export_files()WP 4.9.6

Schedule a WP_Cron job to delete expired export files.

Хуков нет.

Возвращает

null. Ничего.

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

wp_schedule_delete_old_privacy_export_files();

Список изменений

С версии 4.9.6 Введена.

Код wp_schedule_delete_old_privacy_export_files() WP 6.0.2

function wp_schedule_delete_old_privacy_export_files() {
	if ( wp_installing() ) {
		return;
	}

	if ( ! wp_next_scheduled( 'wp_privacy_delete_old_export_files' ) ) {
		wp_schedule_event( time(), 'hourly', 'wp_privacy_delete_old_export_files' );
	}
}