• Resolved jvluca

    (@jvluca)


    Hi there,

    I recently tried to add a snippet and upon saving it crashed my back and front end. WordPress sent us a recovery mode link which allowed us to deactivate the plugin, however instead of deactivation I wanted to delete the last snippet (that caused our website to crash). This was not possible as the snippet tab disappeared from menu on the left. Can you think of any way of deleting my last snippet?

    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    Hi jvulca,

    Code Snippets includes its own safe mode which allows you to keep the plugin active but prevent any snippets running, which will allow you to log in and delete, deactivate or edit any problematic snippets.

    You can enable it either by adding this constant to wp-config.php:

    define( 'CODE_SNIPPETS_SAFE_MODE', true );

    Or by appending this to a WordPress site URL:

    &snippets-safe-mode=1

    The second method will only work when logged in as an administrator.

    For example, you could access the snippets page using safe mode like so:

    https://example.com/wp-admin/admin.php?page=snippets&snippets-safe-mode=1

Viewing 1 replies (of 1 total)
  • The topic ‘My site broke’ is closed to new replies.