PluginProbe ʕ •ᴥ•ʔ
Code Snippets / 3.9.6
Code Snippets v3.9.6
3.9.6 trunk 2.10.0 2.10.1 2.12.0 2.12.1 2.13.0 2.13.1 2.13.2 2.13.3 2.14.0 2.14.1 2.14.2 2.14.3 2.14.4 2.14.5 2.14.6 3.0.0 3.0.1 3.1.0 3.1.1 3.2.1 3.2.2 3.3.0 3.4.0 3.4.1 3.4.2 3.5.0 3.5.0-beta.1 3.6.0 3.6.1 3.6.2 3.6.3 3.6.4 3.6.5 3.6.5.1 3.6.6 3.6.6.1 3.6.7 3.6.8 3.7.0 3.7.0-beta 3.7.0-beta.5 3.7.0-beta.7 3.7.1-beta.1 3.7.1-beta.2 3.7.1-beta.3 3.8.0 3.8.1 3.8.2 3.9.0 3.9.0-beta.1 3.9.0-beta.2 3.9.1 3.9.2 3.9.3 3.9.4 3.9.5
code-snippets / readme.txt
code-snippets Last commit date
assets 9 months ago css 6 months ago dist 4 months ago js 4 months ago php 1 month ago vendor 1 month ago CHANGELOG.md 1 month ago code-snippets.php 1 month ago license.txt 3 years ago readme.txt 1 month ago uninstall.php 1 year ago
readme.txt
468 lines
1 === Code Snippets ===
2 Contributors: bungeshea, ver3, lightbulbman, 0aksmith, johnpixle, louiswol94, carolinaop
3 Donate link: https://codesnippets.pro
4 Tags: code, snippets, multisite, php, css
5 License: GPL-2.0-or-later
6 License URI: license.txt
7 Stable tag: 3.9.6
8 Tested up to: 6.9
9
10 An easy, clean and simple way to enhance your site with code snippets.
11
12 == Description ==
13
14 **✂ Code Snippets** provides an effortless way to enhance your WordPress site.
15
16 **🚀 Upgrade to Code Snippets Pro** for complete CSS, JavaScript, Gutenberg, Elementor and cloud synchronisation integrations. **[Elevate your snippets experience now!](https://codesnippets.pro/pricing)**
17
18 Say goodbye to the hassle of tweaking your theme's `functions.php` file and downloading endless plugins – Code Snippets simplifies the process!
19
20 A snippet is like a mini-plugin for your WordPress site, providing added functionality without the clutter.
21
22 Unlike other solutions that involve dumping code into your `functions.php` file, Code Snippets offers an intuitive graphical interface for seamless integration and real-time execution. Managing snippets is as easy as activating and deactivating plugins, only without the bloat and overhead.
23
24 **🎥 Watch a quick overview by Imran Siddiq:**
25
26 https://youtu.be/uzND-wdSCMQ
27
28 ☁️ Each copy of Code Snippets includes full integration with the community-powered [Code Snippets Cloud](https://codesnippets.cloud/) platform, providing easy access to hundreds of tweaks and enhancements ready to power-up any WordPress site.
29
30 **🌐 Connect with us:**
31
32 * [Support Forum](https://wordpress.org/support/plugin/code-snippets)
33 * [Facebook Community](https://facebook.com/groups/codesnippetsplugin)
34 * [Discord Community](https://snipco.de/discord)
35 * [GitHub Repository](https://github.com/codesnippetspro/code-snippets)
36
37 🌟 Like our plugin? Find it useful? Please consider sharing your experience by [leaving a review on WordPress.org](https://wordpress.org/support/view/plugin-reviews/code-snippets). Your feedback is instrumental to shaping our future growth!
38
39 🌍 We'd like to thank the wonderful people who have helped contribute translations to allow Code Snippets to be used in different languages. [You can find a full list here](https://github.com/codesnippetspro/code-snippets/blob/core/CREDITS.md#translators).
40
41 == Installation ==
42
43 = Automatic installation =
44
45 1. Log into your WordPress admin
46 2. Click __Plugins__
47
48 3. Click __Add New__
49
50 4. Search for __Code Snippets__
51
52 5. Click __Install Now__ under "Code Snippets"
53 6. Activate the plugin
54
55 = Manual installation =
56
57 1. Download the plugin
58 2. Extract the contents of the zip file
59 3. Upload the contents of the zip file to the `wp-content/plugins/` folder of your WordPress installation
60 4. Activate the Code Snippets plugin from 'Plugins' page.
61
62 Network Activating Code Snippets through the Network Dashboard will enable a special interface for running snippets across the entire network.
63
64 == Frequently Asked Questions ==
65
66 A full list of our Frequently Asked Questions can be found at [codesnippets.pro](https://codesnippets.pro/docs/faq/).
67
68 = How can I recover my site if it is crashed by a buggy snippet? =
69 You can recover your site by enabling the Code Snippets safe mode feature. Instructions for how to turn it on are available here: <https://codesnippets.pro/doc/safe-mode/>.
70
71 = Will I lose my snippets if I change the theme or upgrade WordPress? =
72 No, the snippets are stored in the WordPress database, independent of the theme and unaffected by WordPress upgrades.
73
74 = Can the plugin be completely uninstalled? =
75 If you enable the 'Complete Uninstall' option on the plugin settings page, Code Snippets will clean up all of its data when deleted through the WordPress 'Plugins' menu. This includes all stored snippets. If you would like to preserve the snippets, ensure they are exported first.
76
77 = Can I copy snippets that I have created to another WordPress site? =
78 Yes! You can individually export a single snippet using the link below the snippet name on the 'Manage Snippets' page or bulk export multiple snippets using the 'Bulk Actions' feature. Snippets can later be imported using the 'Import Snippets' page by uploading the export file.
79
80 = Can I export my snippets to PHP for a site where I'm not using the Code Snippets plugin? =
81 Yes. Click the checkboxes next to the snippets you want to export, and then choose **Export to PHP** from the Bulk Actions menu and click Apply. The generated PHP file will contain the exported snippets' code, as well as their name and description in comments.
82
83 = Can I run network-wide snippets on a multisite installation? =
84 You can run snippets across an entire multisite network by **Network Activating** Code Snippets through the Network Dashboard. You can also activate Code Snippets just on the main site, and then individually on other sites of your choice.
85
86 = Where are the snippets stored in my WordPress database? =
87 Snippets are stored in the `wp_snippets` table in the WordPress database. The table name may differ depending on what your table prefix is set to.
88
89 = Where can I go for help or suggest new features? =
90 You can get help with Code Snippets, report bugs or errors, and suggest new features and improvements either on the [WordPress Support Forums](https://wordpress.org/support/plugin/code-snippets) or on [GitHub](https://github.com/codesnippetspro/code-snippets).
91
92 = How can I help contribute to the development of the Code Snippets plugin? =
93 The best way to do this is to fork the [repository on GitHub](https://github.com/codesnippetspro/code-snippets) and send a pull request.
94
95 = How can I report security bugs found in this plugin? =
96 You can report security bugs found in the source code of this plugin through the [Patchstack Vulnerability Disclosure Program](https://patchstack.com/database/vdp/code-snippets). The Patchstack team will assist with verification, triage, and notification of security vulnerabilities.
97
98 == Screenshots ==
99
100 1. Managing existing snippets
101 2. Adding a new snippet
102 3. Editing a snippet
103 4. Importing snippets from an export file
104
105 == Changelog ==
106
107 = 3.9.6 (2026-04-28) =
108
109 __Changed__
110
111 * tweak: improve snippets rest api
112
113 __Removed__
114
115 * remove redundant comments
116
117 __Fixed__
118
119 * site admin cannot toggle shared network snippets status
120
121 = 3.9.5 (2026-02-05) =
122
123 __Added__
124
125 * Confirmed WordPress 6.9 compatability
126
127 __Changed__
128
129 * Improved nonce handling for cloud snippet download and update actions to for enhanced security
130
131 = 3.9.4 (2026-01-14) =
132
133 __Added__
134
135 * New import functionality to migrate snippets from file uploads with drag-and-drop interface
136 * Support for importing snippets from other popular plugins (Header Footer Code Manager, Insert Headers and Footers, Insert PHP Code Snippet)
137 * Enhanced file based execution support with improved multisite mode compatibility
138
139 __Changed__
140
141 * Updated links to more recent documentation pages
142
143 __Fixed__
144
145 * Fixed multisite capability checks in Plugin class
146 * Fixed snippet execution logic for multisite support by centralizing trashed snippet handling
147 * Fixed multisite snippet handling to ensure local snippets use correct table and filter out trashed snippets
148
149 = 3.9.3 (2025-12-03) =
150
151 __Added__
152
153 * Enhanced end-to-end tests to verify the toggle visual state in the snippets list page, improving UI verification and test reliability
154
155 __Fixed__
156
157 * Fix missing import of common/direction in src/css/manage.scss to restore correct styling and direction-aware layout
158 * Fix toggle activation check to ensure the correct transformation value is used when detecting active/inactive state
159
160 = 3.9.2 (2025-11-17) =
161
162 __Changed__
163
164 * Introduced a custom scissors icon and updated button title for the TinyMCE extension.
165 * Improved back-navigation styling on the edit page.
166 * Refined layout for column names and action buttons in the Cloud Snippets list.
167 * Enhanced overall styling of cloud-related UI components.
168 * Optimized cloud search with more efficient pagination and snippet retrieval.
169 * Introduced groundwork to prevent Composer dependency collisions with other plugins.
170
171 __Fixed__
172
173 * Improved sanitization and normalization across Cloud API and pagination outputs.
174 * Resolved various TinyMCE issues reported in the WordPress support forum.
175
176 = 3.9.1 (2025-11-14) =
177
178 __Changed__
179
180 * Migrated to native CSS direction handling (RTL/LTR) for improved compatibility and simpler styling
181 * Updated dependencies to the latest compatible versions
182
183 __Fixed__
184
185 * Fixed TinyMCE menu button registration to prevent initialization failure
186 * Fixed the position of the 'code direction' control in the editor
187
188 = 3.9.0 (2025-11-13) =
189
190 __Added__
191
192 * Added contextual notices in the Snippets list table to surface action results and warnings in the UI
193 * Expanded Multisite Sharing settings for clearer control over network-wide snippet sharing
194
195 __Changed__
196
197 * Modernized browser support targets and polished admin UI (clearer row-action badges, improved Pro badge hover, refined active snippet name styling)
198
199 __Fixed__
200
201 * Fixed REST API pagination to return correct results and page counts
202 * Resolved styling selector so the active snippet name highlights reliably
203
204 = 3.8.2 (2025-10-31) =
205
206 __Fixed__
207
208 * Improved namespaced PHP snippet handling with file based execution.
209
210 = 3.8.1 (2025-10-28) =
211
212 __Added__
213
214 * Code line explanation widget with apply and remove actions for AI-generated comments. (PRO)
215
216 __Changed__
217
218 * Improved pagination handling and display structure for cloud search results. (PRO)
219 * Enhanced styling for codevault rows and inactive tabs in cloud interface. (PRO)
220
221 __Removed__
222
223 * Removed `guzzlehttp/guzzle` dependency to reduce package conflicts. (PRO)
224
225 __Fixed__
226
227 * Improved file-based snippet handling for multisite installations.
228
229 = 3.8.0 (2025-10-24) =
230
231 __Added__
232
233 * @CarolinaOP and @louiswol94 join the team as plugin contributors.
234 * File-based execution mode for snippets (Optional in Plugin Settings).
235 * Version switch option, to help easily rollback the plugin to an earlier release.
236 * Minor UI improvements to the editor and sidebar.
237
238 __Changed__
239
240 * Prefixed Composer packages to reduce collisions with other plugins.
241 * Snippets REST API now supports pagination via page and per_page query parameters.
242 * Improved editor preview behavior.
243
244 __Fixed__
245
246 * Fixed issues with snippet evaluation and front-end initialization in edge cases.
247 * Improved reliability of snippet evaluation.
248 * JavaScript and CSS snippets loading twice due to a conditions bug. (PRO)
249 * Fixed issue where some conditions didn’t work due to loading before the loop. (PRO)
250
251 = 3.7.0 (2025-08-29) =
252
253 __Added__
254
255 * New 'conditions' feature: control where and when snippets execute with a powerful logic builder. (PRO)
256
257 __Changed__
258
259 * Redesigned edit menu with refreshed look and functionality.
260 * Updated snippet type badges to be more visually distinct.
261 * Redesigned tooltips used throughout the plugin.
262 * Moved content snippet shortcode options into separate modal window.
263 * Updated snippet tag editor to use built-in WordPress tag editor.
264 * Created proper form for sharing beta feedback.
265 * Improved UX of snippet activation toggle.
266
267 __Fixed__
268
269 * Fetching active snippets on a multisite network now respects the 'priority' field above all else when ordering snippets.
270 * Cloud search appears correctly and allows downloading snippets in the free version of Code Snippets.
271 * Improved performance of loading admin menu icon.
272
273 = 3.6.9 (2025-02-17) =
274
275 __Changed__
276
277 * Updated `Cloud_API::get_bundles()` to properly check bundle data and return an empty array if no valid bundles are present.
278 * Refactored `Cloud_List_Table::fetch_snippets()` to always return a valid `Cloud_Snippets` instance.
279 * Cleaned up bundle iteration code and improved translation handling in the bundles view.
280
281 __Fixed__
282
283 * Fixed errors in bundle iteration by adding a check for the bundles array before iterating.
284
285 = 3.6.8 (2025-02-14) =
286
287 __Added__
288
289 * `code_snippets/hide_welcome_banner` filter hook for hiding welcome banner in dashboard.
290
291 __Changed__
292
293 * Updated Freemius SDK to the latest version. (PRO)
294
295 __Removed__
296
297 * Functionality allowing `[code_snippet]` shortcodes to be embedded recursively – it will be re-added in a future version.
298
299 __Fixed__
300
301 * Shortcodes embedded within `[code_snippet]` shortcodes not evaluating correctly.
302 * Translation functions being called too early in some instances when loading plugin settings.
303 * 'Generate' button not appearing on some sites. (PRO)
304 * Incorrect arrow entity used in cloud list table (props to [brandonjp]).
305 * Removed reference to missing plugins.css file in core plugin version.
306
307 = 3.6.7 (2025-01-24) =
308
309 __Added__
310
311 * Generated snippet shortcode tags will include the snippet name, for easier identification.
312 * Admin notices will dismiss automatically after five seconds. ([#208](https://github.com/codesnippetspro/code-snippets/issues/208))
313
314 __Changed__
315
316 * Updated CSS to use latest Sass features.
317 * Moved theme selector to just above editor preview on settings page (thanks to brandonjp). ([#206](https://github.com/codesnippetspro/code-snippets/issues/206))
318 * `[code_snippet]` shortcodes can now be nested within each other. ([#198](https://github.com/codesnippetspro/code-snippets/issues/198))
319
320 __Fixed__
321
322 * Save buttons above editor did not follow usual validation process in Pro. (PRO) ([#197](https://github.com/codesnippetspro/code-snippets/issues/197))
323 * Minor inconsistencies in consistent UI elements between Core and Pro.
324 * Tags input not allowing input. ([#211](https://github.com/codesnippetspro/code-snippets/issues/211))
325 * Issue with Elementor source code widget. (PRO) ([#205](https://github.com/codesnippetspro/code-snippets/issues/205))
326 * Snippet descriptions not visible when viewing cloud search results.
327 * Snippet import page not displaying number of successfully imported snippets.
328 * Use UTC time when deciding when to display campaign notices.
329
330 = 3.6.6.1 (2024-11-27) =
331
332 __Fixed__
333
334 * Redeployment of v3.6.6 to overcome issue with initial build.
335 * Type issue when caching cloud links. (PRO)
336
337 = 3.6.6 (2024-11-27) =
338
339 __Changed__
340
341 * Improved compatability with modern versions of PHP.
342 * Extended welcome API to include admin notices.
343
344 __Fixed__
345
346 * Memory issue from checking aggregate posts while loading front-end syntax highlighter.
347 * Translation functions being called too early on upgrade, resulting in localisation loading errors.
348 * Bug preventing the 'share on network' status of network snippets from correctly updating.
349 * Incorrect logic controlling when to display 'Save Changes' or 'Save Changes and Activate' buttons.
350 * Old notices persisting when switching between editing and creating snippets.
351
352 = 3.6.5.1 (2024-05-24) =
353
354 * Redeployment of v3.6.5 to overcome issue with initial build.
355
356 = 3.6.5 (2024-05-24) =
357
358 __Added__
359
360 * New admin menu providing useful resources and updates on the Code Snippets plugin and community.
361
362 = 3.6.4 (2024-03-15) =
363
364 __Added__
365
366 * AI generation for all snippet types: HTML, CSS, JS. (PRO)
367 * Button to create a cloud connection directly from the Snippets menu when disconnected. (PRO)
368
369 __Changed__
370
371 * Increment the revision number of CSS and JS snippet when using the 'Reset Caches' debug action. (PRO)
372 * UX in generate dialog, such as allowing 'Enter' to submit the form. (PRO)
373
374 __Fixed__
375
376 * Minor type compatability issue with newer versions of PHP.
377 * Undefined array key issue when initiating cloud sync. (PRO)
378 * Bug preventing downloading a single snippet from a bundle. (PRO)
379 * Translations not loading for strings in JavaScript files.
380
381 = 3.6.3 (2023-11-13) =
382
383 __Added__
384
385 * Added debug action for resetting snippets caches.
386
387 __Fixed__
388
389 * Import error when initialising cloud sync configuration. (PRO)
390
391 = 3.6.2 (2023-11-11) =
392
393 __Removed__
394
395 * Removed automatic encoding of code content.
396
397 __Fixed__
398
399 * Error when attempting to save shared network snippets marked as active.
400 * Type error when rendering checkbox fields without a stored or default value.
401 * Label for snippet sharing input incorrectly linked to input field.
402 * Error when attempting to download export files from Edit menu.
403 * Issue loading Freemius string overrides too early. (PRO)
404 * Fix redirect URL when connecting with OAuth on subdirectory or HTTPS sites. (PRO)
405 * Import error when attempting to completely uninstall the plugin.
406
407 = 3.6.1 (2023-11-07) =
408
409 __Fixed__
410
411 * Issue accessing fields on Snippets class.
412
413 = 3.6.0 (2023-11-07) =
414
415 __Added__
416
417 * Ability to authenticate with Code Snippets Cloud using OAuth. (PRO)
418 * Integration with GPT AI for generating snippets. (PRO)
419 * Ability to generate line-by-line descriptions of snippet code with GPT AI. (PRO)
420 * Ability to generate tags and description text from existing snippet code with GPT AI. (PRO)
421 * Added debug settings menu for manually performing problem-solving actions.
422 * Filter to disable scroll-into-view functionality for edit page notices.
423
424 __Changed__
425
426 * Updated minimum PHP requirement to 7.4.
427 * Ensure that the URL of the edit snippet page changes when adding a new snippet.
428 * Snippet tags will automatically be added when focus is lost on the tags field.
429
430 __Fixed__
431
432 * Moved active status border on edit name field to left-hand side.
433 * New notices will not scroll if already at top of page.
434 * Potential CSRF vulnerability allowing an authenticated user to reset settings.
435
436 = 3.5.1 (2023-09-15) =
437
438 __Fixed__
439
440 * Undefined array key error when accessing plugin settings page. (PRO)
441 * Issue registering API endpoints affecting edit post screen. (PRO)
442 * Snippet ID instead of snippet object being passed to `code_snippets/update_snippet` action hook.
443
444 = 3.5.0 (2023-09-13) =
445
446 __Added__
447
448 * Support for the Code Snippets Cloud API.
449 * Search and download public snippets.
450 * Codevault back-up and synchronisation. (PRO)
451 * Synchronised local snippets are automatically updated in Cloud. (PRO)
452 * Bulk actions - 'update' and 'download'.
453 * Download snippets from public and private codevaults. (PRO)
454 * Search and download any publicly viewable snippet in Code Snippet Cloud by keyword or name of codevault. (PRO)
455 * Deploy snippets to plugin from Code Snippets Cloud app. (PRO)
456 * Bundles of Joy! Search and download Snippet Bundles in one go direct from Code Snippets Cloud. (PRO)
457
458 __Changed__
459
460 * Redirect to snippets table when deleting snippet from the edit menu.
461 * Scroll new notices into view on edit menu.
462
463 __Fixed__
464
465 * Error when attempting to update network shared snippets after saving. [[#](https://wordpress.org/support/topic/activating-snippets-breaks-on-wordpress-6-3/)]
466
467 **[The full changelog is available on GitHub](https://github.com/codesnippetspro/code-snippets/blob/core/CHANGELOG.md)**
468