WP_Upgrader::schedule_temp_backup_cleanup()protectedWP 6.3.0

Schedules the cleanup of the temporary backup directory.

Method of the class: WP_Upgrader{}

No Hooks.

Returns

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->schedule_temp_backup_cleanup();

Changelog

Since 6.3.0 Introduced.

WP_Upgrader::schedule_temp_backup_cleanup() code WP 6.8.1

protected function schedule_temp_backup_cleanup() {
	if ( false === wp_next_scheduled( 'wp_delete_temp_updater_backups' ) ) {
		wp_schedule_event( time(), 'weekly', 'wp_delete_temp_updater_backups' );
	}
}