PluginProbe
Code Snippets / 3.10.1
Code Snippets v3.10.1
3.10.2 3.10.1 3.10.0 3.10.0-beta.2 3.10.0-beta.1 4.0.0-beta.1 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 All 64 releases
code-snippets / readme.txt

readme.txt in Code Snippets 3.10.1, at readme.txt

325 lines 14.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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.10.1
8 Requires at least: 5.5
9 Tested up to: 7.0.3
10 Requires PHP: 7.4
11
12 An easy, clean, and simple way to enhance your site with code snippets.
13
14 == Description ==
15
16 **✂ Code Snippets** provides an effortless way to enhance your WordPress site.
17
18 **🚀 Upgrade to Code Snippets Pro** for complete CSS, JavaScript, Gutenberg, Elementor and cloud synchronisation integrations. **[Elevate your snippets experience now!](https://codesnippets.pro/pricing)**
19
20 Say goodbye to the hassle of tweaking your theme's `functions.php` file and downloading endless plugins – Code Snippets simplifies the process!
21
22 A snippet is like a mini-plugin for your WordPress site, providing added functionality without the clutter.
23
24 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.
25
26 **🎥 Watch a quick overview by Imran Siddiq:**
27
28 https://youtu.be/uzND-wdSCMQ
29
30 ☁️ 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.
31
32 **🌐 Connect with us:**
33
34 * [Support Forum](https://wordpress.org/support/plugin/code-snippets)
35 * [Facebook Community](https://facebook.com/groups/codesnippetsplugin)
36 * [Discord Community](https://snipco.de/discord)
37 * [GitHub Repository](https://github.com/codesnippetspro/code-snippets)
38
39 🌟 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!
40
41 🌍 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).
42
43 == Installation ==
44
45 = Automatic Installation =
46
47 1. Log into your WordPress admin
48 2. Click __Plugins__
49
50 3. Click __Add New__
51
52 4. Search for __Code Snippets__
53
54 5. Click __Install Now__ under "Code Snippets"
55 6. Activate the plugin
56
57 = Manual Installation =
58
59 1. Download the plugin
60 2. Extract the contents of the zip file
61 3. Upload the contents of the zip file to the `wp-content/plugins/` folder of your WordPress installation
62 4. Activate the Code Snippets plugin from 'Plugins' page.
63
64 Network Activating Code Snippets through the Network Dashboard will enable a special interface for running snippets across the entire network.
65
66 == Frequently Asked Questions ==
67
68 A full list of our Frequently Asked Questions can be found at [codesnippets.pro](https://codesnippets.pro/docs/faq/).
69
70 = How can I recover my site if it is crashed by a buggy snippet? =
71 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/>.
72
73 = Will I lose my snippets if I change the theme or upgrade WordPress? =
74 No, the snippets are stored in the WordPress database, independent of the theme and unaffected by WordPress upgrades.
75
76 = Can the plugin be completely uninstalled? =
77 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.
78
79 = Can I copy snippets that I have created to another WordPress site? =
80 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.
81
82 = Can I export my snippets to PHP for a site where I'm not using the Code Snippets plugin? =
83 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.
84
85 = Can I run network-wide snippets on a multisite installation? =
86 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.
87
88 = Where are the snippets stored in my WordPress database? =
89 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.
90
91 = Where can I go for help or suggest new features? =
92 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).
93
94 = How can I help contribute to the development of the Code Snippets plugin? =
95 The best way to do this is to fork the [repository on GitHub](https://github.com/codesnippetspro/code-snippets) and send a pull request.
96
97 = How can I report security bugs found in this plugin? =
98 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.
99
100 == Screenshots ==
101
102 1. Managing existing snippets
103 2. Adding a new snippet
104 3. Editing a snippet
105 4. Importing snippets from an export file
106
107 == Changelog ==
108
109 = 3.10.1 (2026-08-28) =
110
111 __Changed__
112
113 * Enhanced active-link visibility in the toolbar with border-based styling
114 * Standardized sidebar label font sizing for consistency
115
116 __Fixed__
117
118 * Fixed admin bar script loading on core to work correctly on front-end
119 * Fixed snippet modification dates to send with proper UTC offset
120 * Fixed row truncation screen option to persist correctly across sessions
121 * Fixed sticky sidebar from displaying unwanted horizontal scrollbar
122
123 = 3.10.0 (2026-08-24) =
124
125 __Added__
126
127 * New admin interface for managing snippets, with a cleaner layout, faster interactions, and a more consistent experience across plugin screens.
128 * Card view for browsing snippets, with a view switcher on the snippets table and Community Cloud.
129 * Snippet preview modal for viewing snippet code from the snippets table without opening the editor.
130 * Automatic hiding of unrelated admin notices from other plugins on Code Snippets screens.
131 * Admin bar snippet drawer, based on the Deckerweb Snippets workflow, for quick access to snippets and Safe Mode from the WordPress admin bar.
132 * Snippet locking to help prevent accidental edits or deletion of important snippets. Props to https://github.com/mgiannopoulos24.
133 * Improved screen options on the main snippets table, including controls for visible columns and truncating long snippet names or descriptions.
134 * Bulk actions and bulk code download support in the redesigned snippets table.
135 * Featured snippets and improved browsing in Community Cloud.
136 * WordPress modern theme admin styling compatibility.
137 * Clearer accessibility labels, headings, tab markup, table checkboxes, sort buttons, copy buttons, and drag-and-drop upload controls.
138
139 __Changed__
140
141 * Redesigned the main snippets table with improved search, filtering, sorting, pagination, row actions, and bulk selection.
142 * Improved the snippet import and migration experience, including clearer file upload handling and third-party plugin migration flows.
143 * Improved snippet error handling so activation failures, validation errors, and stack traces are easier to understand.
144 * Improved Community Cloud search and filtering, including server-side filters, better result loading, and clearer empty states.
145 * Updated the welcome screen, toolbar, import screen, and cloud screens to match the new admin experience.
146 * Updated internal plugin architecture to a cleaner PSR-4 structure for better long-term maintainability.
147 * Improved accessibility across the snippets table, import screen, migration flow, Community Cloud, welcome screen, toolbar, dialogs, tooltips, and code editor.
148 * Improved colour contrast and reduced-motion support across admin screens.
149
150 __Fixed__
151
152 * Fixed REST API server error responses on missing snippets.
153 * Fixed redundant frontend logic, improving overall performance.
154 * Fixed Community Cloud search results and pagination to respect WordPress screen options.
155 * Fixed snippet saving and activation feedback to improve validation and runtime error display.
156 * Fixed downloaded Community Cloud snippets appearing as not downloaded after a page reload.
157 * Fixed network snippet lookups using the wrong database table on multisite.
158 * Fixed the inactive snippets count including trashed snippets.
159 * Fixed featured Community Cloud snippets failing to load with some cloud API responses.
160
161 = 3.9.6 (2026-04-28) =
162
163 __Fixed__
164
165 * Improved permissions handling with snippets REST API.
166 * Site admin cannot toggle shared network snippets status.
167
168 = 3.9.5 (2026-02-05) =
169
170 __Fixed__
171
172 * Improved security when handling actions for downloading and updating cloud snippets.
173
174 = 3.9.4 (2026-01-14) =
175
176 __Added__
177
178 * New import functionality to migrate snippets from file uploads with drag-and-drop interface.
179 * Support for importing snippets from other popular plugins (Header Footer Code Manager, Insert Headers and Footers, Insert PHP Code Snippet).
180 * Enhanced file based execution support with improved multisite mode compatibility.
181
182 __Fixed__
183
184 * Fixed multisite capability checks in Plugin class.
185 * Fixed snippet execution logic for multisite support by centralizing trashed snippet handling.
186 * Fixed multisite snippet handling to ensure local snippets use correct table and filter out trashed snippets.
187
188 = 3.9.3 (2025-12-03) =
189
190 __Added__
191
192 * End-to-end tests to verify the toggle visual state in the snippets list page, improving UI verification and test reliability.
193
194 __Fixed__
195
196 * Restored missing styles styling and direction-aware layout from Manage menu.
197 * Ensure correct transformation value is used when detecting state of activation toggle.
198
199 = 3.9.2 (2025-11-17) =
200
201 __Changed__
202
203 * Introduced a custom scissors icon and updated button title for the TinyMCE extension.
204 * Improved back-navigation styling on the edit page.
205 * Refined layout for column names and action buttons in the Cloud Snippets list.
206 * Enhanced overall styling of cloud-related UI components.
207 * Optimized cloud search with more efficient pagination and snippet retrieval.
208 * Introduced groundwork to prevent Composer dependency collisions with other plugins.
209
210 __Fixed__
211
212 * Improved sanitization and normalization across Cloud API and pagination outputs.
213 * Resolved various TinyMCE issues reported in the WordPress support forum.
214
215 = 3.9.1 (2025-11-14) =
216
217 __Changed__
218
219 * Migrated to native CSS direction handling (RTL/LTR) for improved compatibility and simpler styling
220 * Updated dependencies to the latest compatible versions
221
222 __Fixed__
223
224 * Fixed TinyMCE menu button registration to prevent initialization failure
225 * Fixed the position of the 'code direction' control in the editor
226
227 = 3.9.0 (2025-11-13) =
228
229 __Added__
230
231 * Added contextual notices in the Snippets list table to surface action results and warnings in the UI
232 * Expanded Multisite Sharing settings for clearer control over network-wide snippet sharing
233
234 __Changed__
235
236 * Modernized browser support targets and polished admin UI (clearer row-action badges, improved Pro badge hover, refined active snippet name styling)
237
238 __Fixed__
239
240 * Fixed REST API pagination to return correct results and page counts
241 * Resolved styling selector so the active snippet name highlights reliably
242
243 = 3.8.2 (2025-10-31) =
244
245 __Fixed__
246
247 * Improved namespaced PHP snippet handling with file based execution.
248
249 = 3.8.1 (2025-10-28) =
250
251 __Added__
252
253 * Code line explanation widget with apply and remove actions for AI-generated comments. (PRO)
254
255 __Changed__
256
257 * Improved pagination handling and display structure for cloud search results. (PRO)
258 * Enhanced styling for codevault rows and inactive tabs in cloud interface. (PRO)
259
260 __Removed__
261
262 * Removed `guzzlehttp/guzzle` dependency to reduce package conflicts. (PRO)
263
264 __Fixed__
265
266 * Improved file-based snippet handling for multisite installations.
267
268 = 3.8.0 (2025-10-24) =
269
270 __Added__
271
272 * @CarolinaOP and @louiswol94 join the team as plugin contributors.
273 * File-based execution mode for snippets (Optional in Plugin Settings).
274 * Version switch option, to help easily rollback the plugin to an earlier release.
275 * Minor UI improvements to the editor and sidebar.
276
277 __Changed__
278
279 * Prefixed Composer packages to reduce collisions with other plugins.
280 * Snippets REST API now supports pagination via page and per_page query parameters.
281 * Improved editor preview behavior.
282
283 __Fixed__
284
285 * Fixed issues with snippet evaluation and front-end initialization in edge cases.
286 * Improved reliability of snippet evaluation.
287 * JavaScript and CSS snippets loading twice due to a conditions bug. (PRO)
288 * Fixed issue where some conditions didn’t work due to loading before the loop. (PRO)
289
290 = 3.7.0 (2025-08-29) =
291
292 __Added__
293
294 * New 'conditions' feature: control where and when snippets execute with a powerful logic builder. (PRO)
295
296 __Changed__
297
298 * Redesigned edit menu with refreshed look and functionality.
299 * Updated snippet type badges to be more visually distinct.
300 * Redesigned tooltips used throughout the plugin.
301 * Moved content snippet shortcode options into separate modal window.
302 * Updated snippet tag editor to use built-in WordPress tag editor.
303 * Created proper form for sharing beta feedback.
304 * Improved UX of snippet activation toggle.
305
306 __Fixed__
307
308 * Fetching active snippets on a multisite network now respects the 'priority' field above all else when ordering snippets.
309 * Cloud search appears correctly and allows downloading snippets in the free version of Code Snippets.
310 * Improved performance of loading admin menu icon.
311
312 = 3.6.9 (2025-02-17) =
313
314 __Changed__
315
316 * Updated `Cloud_API::get_bundles()` to properly check bundle data and return an empty array if no valid bundles are present.
317 * Refactored `Cloud_List_Table::fetch_snippets()` to always return a valid `Cloud_Snippets` instance.
318 * Cleaned up bundle iteration code and improved translation handling in the bundles view.
319
320 __Fixed__
321
322 * Fixed errors in bundle iteration by adding a check for the bundles array before iterating.
323
324 **[The full changelog is available on GitHub](https://github.com/codesnippetspro/code-snippets/blob/core/CHANGELOG.md)**
325