PluginProbe ʕ •ᴥ•ʔ
Code Snippets / 3.6.5.1
Code Snippets v3.6.5.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 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 3 years ago css 2 years ago dist 2 years ago js 2 years ago php 2 years ago vendor 2 years ago CHANGELOG.md 2 years ago code-snippets.php 2 years ago license.txt 3 years ago readme.txt 1 year ago uninstall.php 3 years ago
readme.txt
313 lines
1 === Code Snippets ===
2 Contributors: bungeshea, ver3, lightbulbman, nate33, 0aksmith, pauserratgutierrez, codesnippetspro
3 Tags: code, snippets, multisite, php, css
4 License: MIT
5 License URI: license.txt
6 Stable tag: 3.6.5.1
7 Tested up to: 6.6.2
8
9 An easy, clean and simple way to enhance your site with code snippets.
10
11 == Description ==
12
13 **✂ Code Snippets** provides an effortless way to enhance your WordPress site.
14
15 **🚀 Upgrade to Code Snippets Pro** for complete CSS, JavaScript, Gutenberg, Elementor and cloud synchronisation integrations. **[Elevate your snippets experience now!](https://codesnippets.pro/pricing)**
16
17 Say goodbye to the hassle of tweaking your theme's `functions.php` file and downloading endless plugins – Code Snippets simplifies the process!
18
19 A snippet is like a mini-plugin for your WordPress site, providing added functionality without the clutter.
20
21 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.
22
23 **🎥 Watch a quick overview by Imran Siddiq:**
24
25 https://youtu.be/uzND-wdSCMQ
26
27 ☁️ 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.
28
29 **🌐 Connect with us:**
30
31 * [Support Forum](https://wordpress.org/support/plugin/code-snippets)
32 * [Facebook Community](https://facebook.com/groups/codesnippetsplugin)
33 * [GitHub Repository](https://github.com/codesnippetspro/code-snippets)
34
35 🌟 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!
36
37 🌍 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).
38
39 == Installation ==
40
41 = Automatic installation =
42
43 1. Log into your WordPress admin
44 2. Click __Plugins__
45
46 3. Click __Add New__
47
48 4. Search for __Code Snippets__
49
50 5. Click __Install Now__ under "Code Snippets"
51 6. Activate the plugin
52
53 = Manual installation =
54
55 1. Download the plugin
56 2. Extract the contents of the zip file
57 3. Upload the contents of the zip file to the `wp-content/plugins/` folder of your WordPress installation
58 4. Activate the Code Snippets plugin from 'Plugins' page.
59
60 Network Activating Code Snippets through the Network Dashboard will enable a special interface for running snippets across the entire network.
61
62 == Frequently Asked Questions ==
63
64 A full list of our Frequently Asked Questions can be found at [help.codesnippets.pro](https://help.codesnippets.pro/collection/3-faq).
65
66 = How can I recover my site if it is crashed by a buggy snippet? =
67 You can recover your site by enabling the Code Snippets safe mode feature. Instructions for how to turn it on are available here: <https://help.codesnippets.pro/article/12-safe-mode>.
68
69 = Will I lose my snippets if I change the theme or upgrade WordPress? =
70 No, the snippets are stored in the WordPress database, independent of the theme and unaffected by WordPress upgrades.
71
72 = Can the plugin be completely uninstalled? =
73 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.
74
75 = Can I copy snippets that I have created to another WordPress site? =
76 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.
77
78 = Can I export my snippets to PHP for a site where I'm not using the Code Snippets plugin? =
79 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.
80
81 = Can I run network-wide snippets on a multisite installation? =
82 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.
83
84 = Where are the snippets stored in my WordPress database? =
85 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.
86
87 = Where can I go for help or suggest new features? =
88 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).
89
90 = How can I help contribute to the development of the Code Snippets plugin? =
91 The best way to do this is to fork the [repository on GitHub](https://github.com/codesnippetspro/code-snippets) and send a pull request.
92
93 = How can I report security bugs found in this plugin? =
94 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.
95
96 == Screenshots ==
97
98 1. Managing existing snippets
99 2. Adding a new snippet
100 3. Editing a snippet
101 4. Importing snippets from an export file
102
103 == Changelog ==
104
105 = 3.6.5 (2024-05-24) =
106
107 __Added__
108
109 * New admin menu providing useful resources and updates on the Code Snippets plugin and community.
110
111 = 3.6.4 (2024-03-15) =
112
113 __Added__
114
115 * AI generation for all snippet types: HTML, CSS, JS. (PRO)
116 * Button to create a cloud connection directly from the Snippets menu when disconnected. (PRO)
117
118 __Changed__
119
120 * Increment the revision number of CSS and JS snippet when using the 'Reset Caches' debug action. (PRO)
121 * UX in generate dialog, such as allowing 'Enter' to submit the form. (PRO)
122
123 __Fixed__
124
125 * Minor type compatability issue with newer versions of PHP.
126 * Undefined array key issue when initiating cloud sync. (PRO)
127 * Bug preventing downloading a single snippet from a bundle. (PRO)
128 * Translations not loading for strings in JavaScript files.
129
130 = 3.6.3 (2023-11-13) =
131
132 __Added__
133
134 * Added debug action for resetting snippets caches.
135
136 __Fixed__
137
138 * Import error when initialising cloud sync configuration. (PRO)
139
140 = 3.6.2 (2023-11-11) =
141
142 __Removed__
143
144 * Removed automatic encoding of code content.
145
146 __Fixed__
147
148 * Error when attempting to save shared network snippets marked as active.
149 * Type error when rendering checkbox fields without a stored or default value.
150 * Label for snippet sharing input incorrectly linked to input field.
151 * Error when attempting to download export files from Edit menu.
152 * Issue loading Freemius string overrides too early. (PRO)
153 * Fix redirect URL when connecting with OAuth on subdirectory or HTTPS sites. (PRO)
154 * Import error when attempting to completely uninstall the plugin.
155
156 = 3.6.1 (2023-11-07) =
157
158 __Fixed__
159
160 * Issue accessing fields on Snippets class.
161
162 = 3.6.0 (2023-11-07) =
163
164 __Added__
165
166 * Ability to authenticate with Code Snippets Cloud using OAuth. (PRO)
167 * Integration with GPT AI for generating snippets. (PRO)
168 * Ability to generate line-by-line descriptions of snippet code with GPT AI. (PRO)
169 * Ability to generate tags and description text from existing snippet code with GPT AI. (PRO)
170 * Added debug settings menu for manually performing problem-solving actions.
171 * Filter to disable scroll-into-view functionality for edit page notices.
172
173 __Changed__
174
175 * Updated minimum PHP requirement to 7.4.
176 * Ensure that the URL of the edit snippet page changes when adding a new snippet.
177 * Snippet tags will automatically be added when focus is lost on the tags field.
178
179 __Fixed__
180
181 * Moved active status border on edit name field to left-hand side.
182 * New notices will not scroll if already at top of page.
183 * Potential CSRF vulnerability allowing an authenticated user to reset settings.
184
185 = 3.5.1 (2023-09-15) =
186
187 __Fixed__
188
189 * Undefined array key error when accessing plugin settings page. (PRO)
190 * Issue registering API endpoints affecting edit post screen. (PRO)
191 * Snippet ID instead of snippet object being passed to `code_snippets/update_snippet` action hook.
192
193 = 3.5.0 (2023-09-13) =
194
195 __Added__
196
197 * Support for the Code Snippets Cloud API.
198 * Search and download public snippets.
199 * Codevault back-up and synchronisation. (PRO)
200 * Synchronised local snippets are automatically updated in Cloud. (PRO)
201 * Bulk actions - 'update' and 'download'.
202 * Download snippets from public and private codevaults. (PRO)
203 * Search and download any publicly viewable snippet in Code Snippet Cloud by keyword or name of codevault. (PRO)
204 * Deploy snippets to plugin from Code Snippets Cloud app. (PRO)
205 * Bundles of Joy! Search and download Snippet Bundles in one go direct from Code Snippets Cloud. (PRO)
206
207 __Changed__
208
209 * Redirect to snippets table when deleting snippet from the edit menu.
210 * Scroll new notices into view on edit menu.
211
212 __Fixed__
213
214 * Error when attempting to update network shared snippets after saving. [[#](https://wordpress.org/support/topic/activating-snippets-breaks-on-wordpress-6-3/)]
215
216 = 3.4.2 (2023-07-05) =
217
218 __Fixed__
219
220 * Issue causing export process to fail with fatal error. [[#](https://wordpress.org/support/topic/critical-error-on-exporting-snippets/)]
221 * Type issue on `the_posts` filter when no posts available. [[#](https://wordpress.org/support/topic/collision-with-plugin-xml-sitemap-google-news/)]
222
223 = 3.4.1 (2023-06-29) =
224
225 __Added__
226
227 * Added better debugging when calling REST API methods from the edit menu.
228
229 __Changed__
230
231 * Escape special characters when sending snippet code through AJAX to avoid false-positives from security modules. [[#](https://wordpress.org/support/topic/latest-3-4-0-ajax-bug-cannot-save-snippets-403-error/)]
232 * Only display the latest update or error notice on the edit page, instead of allowing them to stack.
233
234 __Fixed__
235
236 * Undefined array key error. [[#](https://wordpress.org/support/topic/after-updating-occasionally-getting-undefined-array-key-query/)]
237 * Potential type issue when loading Prism. [[#](https://wordpress.org/support/topic/code-snippets-fatal-error-breaking-xml-sitemaps/)]
238 * Potential type issue when sorting snippets. [[#](https://github.com/codesnippetspro/code-snippets/issues/166)]
239 * Issue preventing asset revision numbers from updating correctly. (PRO) [[#](https://github.com/codesnippetspro/code-snippets/issues/166)]
240
241 = 3.4.0 (2023-05-17) =
242
243 __Added__
244
245 * Proper WordPress REST API support for retrieving and modifying snippets.
246 * Added help links to content snippet options.
247
248 __Changed__
249
250 * Better compatibility with modern versions of PHP (7.0+).
251 * Converted Edit/Add New Snippet page to use React.
252 * Converted action buttons to asynchronously use REST API endpoints through AJAX.
253 * Load page components dynamically through React.
254 * Added action notice queue system.
255 * Replaced native alert dialog with proper React modal.
256 * Catch snippet execution errors to prevent site from crashing.
257 * Display recent snippet errors in admin dashboard instead.
258 * Updated editor block to use new REST API endpoints. (PRO)
259 * Change colour of upgrade notice in Pro plugin. (PRO)
260 * All available snippet data is included in export files.
261 * Only import specific fields from export file, even if additional fields specified.
262 * Pass additional attributes specified in `[code_snippet]` content shortcode to shortcode content.
263 * Make shortcode attributes available as individual variables.
264 * Allow boolean attributes to be passed to code snippets shortcodes without specifying a value.
265 * Replace external links to Pro pricing page with an upgrade modal.
266
267 __Fixed__
268
269 * Issue preventing editor colorpicker from loading correctly. (PRO)
270 * Issue preventing linting libraries from loading correctly in the code editor.
271
272 = 3.3.0 (2023-03-09) =
273
274 __Added__
275
276 * Added additional editor shortcuts to list in tooltip.
277 * Filter for changing Snippets admin menu position. [See this help article for more information.](https://help.codesnippets.pro/article/61-how-can-i-change-the-location-of-the-snippets-admin-menu)
278 * Ability to filter shortcode output. Thanks to contributions from [Jack Szwergold](https://github.com/JackSzwergold).
279
280 __Fixed__
281
282 * Do not enqueue CSS or JS snippet file if no snippets exist. (PRO)
283 * Bug causing all snippets to show in site health information instead of those active.
284 * Unnecessary sanitization of file upload data causing import process to fail on Windows systems.
285
286 = 3.2.2 (2022-11-17) =
287
288 __Fixed__
289
290 * Plugin lacking a valid header error on activation.
291
292 = 3.2.1 (2022-10-05) =
293
294 __Added__
295
296 * `Ctrl`+`/` or `Cmd`+`/` as shortcut for commenting out code in the snippet editor.
297 * Additional hooks to various snippet actions, thanks to contributions made by [ancient-spirit](https://github.com/ancient-spirit).
298 * Fold markers, additional keyboard shortcuts and keymap options to snippet editor,
299 thanks to contributions made by [Amaral Krichman](https://github.com/karmaral).
300 * WP-CLI commands for retrieving, activating, deactivating, deleting, creating, updating, exporting and importing snippets.
301
302 __Changed__
303
304 * Removed duplicate tables exist query. ([#](https://wordpress.org/support/topic/duplicate-queries-21)).
305 * Enabled 'add paragraphs and formatting' option by default for newly inserted content snippets.
306
307 __Fixed__
308
309 * Issue making survey reminder notice not dismissible.
310 * Path to iron visible when updating the pro plugin.
311
312 **[The full changelog is available on GitHub](https://github.com/codesnippetspro/code-snippets/blob/core/CHANGELOG.md)**
313