wp_schedule_delete_old_privacy_export_files()WP 4.9.6

Schedules a WP_Cron job to delete expired export files.

No Hooks.

Return

null. Nothing (null).

Usage

wp_schedule_delete_old_privacy_export_files();

Changelog

Since 4.9.6 Introduced.

wp_schedule_delete_old_privacy_export_files() code WP 6.5.4

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' );
	}
}