On this page
wp_schedule_delete_old_privacy_export_files()
Schedules a WP_Cron job to delete expired export files.
Source
File: wp-includes/functions.php. View all references
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' );
}
}
Related
Uses
| Uses | Description |
|---|---|
| wp_installing() wp-includes/load.php | Check or set whether WordPress is in “installation” mode. |
| wp_next_scheduled() wp-includes/cron.php | Retrieve the next timestamp for an event. |
| wp_schedule_event() wp-includes/cron.php | Schedules a recurring event. |
Changelog
| Version | Description |
|---|---|
| 4.9.6 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_schedule_delete_old_privacy_export_files