Title: Activate/ Deactivate?
Last modified: August 30, 2016

---

# Activate/ Deactivate?

 *  Resolved [argent41](https://wordpress.org/support/users/argent41/)
 * (@argent41)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/activate-deactivate/)
 * Hi Shea,
    This may sound like a dumb question but can you explain the concept
   of activating a snippet? On first investigation of this plugin I thought it was
   just a repository for copied code and that you would just copy and paste the 
   required snippet into the relevant place – be that in your post/page editor or
   one of your .php files. How does a snippet get ‘activated’ and what criteria 
   is used to decide where to deploy it.? Any help appreciated.
 * [https://wordpress.org/plugins/code-snippets/](https://wordpress.org/plugins/code-snippets/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/activate-deactivate/#post-6711091)
 * Basically this plugin functions as a more than a place to store code. It’s intended
   solely for PHP code snippets, like you might place in a plugin file or a theme’s
   functions.php file, and not snippets which directly produce output.
 * ‘Activating’ a snippet means that the code is executed on the site as if it was
   part of a plugin. By default, the code is run on every page load, but you can
   change this by choosing the ‘admin’ or ‘front-end’ scopes, or by building some
   sort of logic into your snippet code.
 * Sorry for taking so long to get back to you.

Viewing 1 replies (of 1 total)

The topic ‘Activate/ Deactivate?’ is closed to new replies.

 * ![](https://ps.w.org/code-snippets/assets/icon.svg?rev=2148878)
 * [Code Snippets](https://wordpress.org/plugins/code-snippets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/code-snippets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/code-snippets/)
 * [Active Topics](https://wordpress.org/support/plugin/code-snippets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/code-snippets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/code-snippets/reviews/)

## Tags

 * [activate](https://wordpress.org/support/topic-tag/activate/)
 * [deactivate](https://wordpress.org/support/topic-tag/deactivate/)

 * 1 reply
 * 2 participants
 * Last reply from: [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/activate-deactivate/#post-6711091)
 * Status: resolved