wp_schedule_delete_old_privacy_export_files() WordPress Function

The wp_schedule_delete_old_privacy_export_files() function is used to schedule the deletion of old privacy export files. This function is used by the privacy export tool to ensure that export files are deleted after a certain period of time.

wp_schedule_delete_old_privacy_export_files() #

Schedule a WP_Cron job to delete expired export files.


Source

File: wp-includes/functions.php

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


Top ↑

Changelog

Changelog
VersionDescription
4.9.6Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More