• Resolved Imagecamilamadronero

    (@camilamadronero)


    Hello Code Snippets team!

    I often use Code Snippets to tweak stuff in customers’ sites when FTP access is not available.

    As soon as Code Snippets is installed and activated on a site, any of the previously used snippets are preserved, along with their status.

    This can be risky because an old random problematic snippet can cause issues and/or unexpected changes on the site.

    While you can disable snippets manually, and leave only the one(s) you intended to add, I would think that the previously snippets should not be preserved on a site. And, if they are, they should all be deactivated by default.

    Hope the suggestions makes sense! Thanks for the great plugin!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @camilamadronero,

    Not sure if I’m understanding correctly, but you can always delete the snippets you don’t want to keep. Also, if you deactivate the plugin, no code snippets will fire at all, even if they remains in the database!

    In addition to that, the plugin adds a setting that you can check to remove all the snippets when uninstalling, in Snippets > Settings > General > Complete Uninstall.

    Thread Starter Imagecamilamadronero

    (@camilamadronero)

    Hey, @yordansoares !

    Also, if you deactivate the plugin, no code snippets will fire at all, even if they remains in the database!

    I’m not sure this is correct. The snippets appear active if they were active on the previous install.

    And, yes, I’m aware that there are options people can use. But these are manual options.

    The ideal and safest would be for the Code Snippets plugin to follow the best practices, and have everything deleted by default after it’s been uninstalled.

    Reference here: https://developer.wordpress.org/plugins/plugin-basics/uninstall-methods/.

    I’ll keep using the plugin either way, just thought I’d put this suggestion out there!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Delete snippets upon plugin removal’ is closed to new replies.