exit_recovery_mode example

die;
        }

        if ( ! isset( $_GET['action'] ) || self::EXIT_ACTION !== $_GET['action'] ) {
            return;
        }

        if ( ! isset( $_GET['_wpnonce'] ) || ! wp_verify_nonce( $_GET['_wpnonce'], self::EXIT_ACTION ) ) {
            wp_die( __( 'Exit recovery mode link expired.' ), 403 );
        }

        if ( ! $this->exit_recovery_mode() ) {
            wp_die( __( 'Failed to exit recovery mode. Please try again later.' ) );
        }

        wp_safe_redirect( $redirect_to );
        die;
    }

    /** * Cleans any recovery mode keys that have expired according to the link TTL. * * Executes on a daily cron schedule. * * @since 5.2.0 */
Home | Imprint | This part of the site doesn't use cookies.