schedule_temp_backup_cleanup example


    public function init() {
        $this->skin->set_upgrader( $this );
        $this->generic_strings();

        if ( ! wp_installing() ) {
            $this->schedule_temp_backup_cleanup();
        }
    }

    /** * Schedules the cleanup of the temporary backup directory. * * @since 6.3.0 */
    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' );
        }
Home | Imprint | This part of the site doesn't use cookies.