wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
wp_delete_all_temp_backups › WordPress Function
Seit6.3.0
Veraltetn/v
› wp_delete_all_temp_backups ( Keine Parameter )
Definiert in: |
|
Codex: |
Schedules the removal of all contents in the temporary backup directory.
Ähnliche Funktionen: _wp_delete_all_temp_backups, wp_delete_term, wp_mediaelement_fallback, wp_delete_nav_menu, wp_rel_callback
Quellcode
function wp_delete_all_temp_backups() { /* * Check if there is a lock, or if currently performing an Ajax request, * in which case there is a chance an update is running. * Reschedule for an hour from now and exit early. */ if ( get_option( 'core_updater.lock' ) || get_option( 'auto_updater.lock' ) || wp_doing_ajax() ) { wp_schedule_single_event( time() + HOUR_IN_SECONDS, 'wp_delete_temp_updater_backups' ); return; } // This action runs on shutdown to make sure there are no plugin updates currently running. add_action( 'shutdown', '_wp_delete_all_temp_backups' ); }