Code Snippets
by Code Snippets Pro
The original snippet manager, with per-snippet activation and a clean import and export format.
This link may earn us a commission. It never changes our rating.
What Code Snippets does
The original snippet manager, with per-snippet activation and a clean import and export format.
It sits in the code snippets part of a WordPress stack and is sold by Code Snippets Pro on a freemium basis. We recommend it in our code snippets guides because it does that one job well without asking you to rebuild the rest of the site around it.
Every plugin adds work to a page request, so treat this as a decision with a cost. Record a speed test before you install it and run the same test afterwards, on the same page, so you know exactly what it charged you.
Real user ratings
Score
4.7/5
Reviews
509
Active installs
1,000,000+
Downloads
23.1M
Latest version
3.10.2
Last updated
2026-09-02
These figures come straight from the public WordPress.org plugin directory API for version 3.10.2, not from us. Check them yourself on the WordPress.org listing. Our own editorial score is 4.8/5.
Where Code Snippets ranks elsewhere
| Publisher | List | Position |
|---|---|---|
| WPBeginner | Must Have WordPress Plugins for Every Website | #22 of 24 |
| WPBeginner | Best WooCommerce Plugins for Your Store | #29 of 32 |
Positions are read from the published articles themselves, so they reflect that publisher's order rather than ours. Lists get re-ordered over time, so follow the link if you want the current version.
What changed in the latest version
- Added a confirmation flow for run-once snippet execution and hardened the handler to prevent failed or confusing actions.
- Snippet names now respect the row truncation Screen Option in the admin list for better readability.
- Version switching AJAX requests now validate the correct nonce, improving reliability when updating snippet versions.
- Fixed safe mode fatal errors caused by an undefined wp_get_current_user() call.
- Fixed PHP validation being triggered incorrectly when activating snippets in bulk.
- Fixed saving issues after a user session expires.
- Fixed warnings caused by aliased field names when reading modified snippet fields.
- Fixed vendor autoloader issues by stripping unprefixed namespace references.
- Enhanced active-link visibility in the toolbar with border-based styling.
- Fixed a fatal error affecting snippets that use a namespace or declare statement.
- Fixed the snippets page rendering blank when another plugin's screen settings filter returned an invalid value.
- Fixed snippet saving on hosts that block REST API PUT and PATCH requests, by sending writes as POST with a method override.
- Fixed the Snippets List Order setting not being applied to the snippets list.
- Fixed admin bar snippet scripts failing to load on the free version, including on the site front end.
- Fixed snippet modified dates being sent without the correct UTC offset.
- Fixed the row truncation screen option not persisting across sessions.
- New admin interface for managing snippets, with a cleaner layout, faster interactions, and a more consistent experience across plugin screens.
- Card view for browsing snippets, with a view switcher on the snippets table and Community Cloud.
- Snippet preview modal for viewing snippet code from the snippets table without opening the editor.
- Automatic hiding of unrelated admin notices from other plugins on Code Snippets screens.
- Admin bar snippet drawer, based on the Deckerweb Snippets workflow, for quick access to snippets and Safe Mode from the WordPress admin bar.
- Snippet locking to help prevent accidental edits or deletion of important snippets. Props to https://github.com/mgiannopoulos24.
- Improved screen options on the main snippets table, including controls for visible columns and truncating long snippet names or descriptions.
- Bulk actions and bulk code download support in the redesigned snippets table.
Release notes are the developer's own words, published on WordPress.org. Read the full changelog
Pros and cons
- Simple, proven and free
- A free tier you can trial before paying
- Actively maintained and used on production sites we test
- Fewer placement conditions
- The features most sites need sit in the paid tier
How to use it
- 1Add one snippet at a time and give it a clear descriptive title.
- 2Set the placement and any conditional rules before activating.
- 3Activate on staging first if the snippet touches checkout or login.
- 4Use the error protection feature so a bad snippet cannot lock you out.
- 5Export your snippets so they can be restored on another site.
How it compares
Other code snippets plugins we recommend, with their rating and pricing model.
| Plugin | Our rating | WordPress.org | Pricing | Best for |
|---|---|---|---|---|
| Code Snippets | 4.8 | 4.7 (509) | Freemium | Simple, proven and free |
| Advanced Scripts | 4.6 | n/a | Premium | Precise placement conditions |
| Header Footer Code Manager | 4.6 | 4.9 (309) | Freemium | Made for tracking tags |
| Insert Headers and Footers | 4.8 | 4.9 (1,880) | Freemium | Fastest way to add a tracking tag |
| Simple Custom CSS and JS | 4.7 | 4.4 (103) | Freemium | CSS and JS with version history |
| WPCode | 4.9 | 4.9 (1,880) | Freemium | Error protection stops white screens |
Guides that cover Code Snippets
Alternatives
Other code snippets plugins
Advanced Scripts
Wise Plugin
A premium snippet manager with fine-grained placement, conditions and a code editor built for developers.
Header Footer Code Manager
99robots
Inserts tracking and verification code in the header, body or footer with site-wide or per-page rules.
309 reviews · 9.1M downloads · v1.1.46
Insert Headers and Footers
WPCode
The lightweight WPCode build for adding scripts to the header and footer without editing theme files.
1,880 reviews · 92.6M downloads · v2.3.9

