PluginProbe
Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts / trunk
Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts vtrunk
2.7.7 2.7.6 2.7.5 2.7.4 trunk 1.3 2.0.4 2.0.6 2.1.91 2.2.4 2.2.7 2.2.9 2.3.1 2.3.10 2.4.10 2.4.2 2.4.4 2.4.5 2.4.6 2.4.7 2.4.8 2.4.9 2.6.0 2.6.1 2.7.0 All 28 releases
← All changes | readme.txt +551 -60 1.3trunk View file →
@@ -1,120 +1,611 @@
1 -=== Insert PHP ===
2 -Contributors: WillBontrager
3 -Donate link: http://www.willmaster.com/plugindonate.php
4 -Tags: run PHP, insert PHP, insert PHP page, insert PHP post, use PHP, PHP plugin
5 -Requires at least: 3.3.1
6 -Tested up to: 4.3.1
7 -Stable tag: trunk
1 +=== Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts ===
2 +Contributors: themeisle
3 +Tags: code snippets, php, insert php, header footer, custom css
4 +Requires at least: 5.6
5 +Tested up to: 7.1
6 +Requires PHP: 7.0
7 +Stable tag: 2.7.7
8 8 License: GPLv2 or later
9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html
10 10
11 -Run PHP code inserted into WordPress posts and pages.
11 +Insert PHP, JavaScript, CSS, HTML, ads & tracking code into WordPress headers, footers, pages & content with conditional logic — no theme editing.
12 12
13 13 == Description ==
14 14
15 -Run PHP code inserted into WordPress posts and pages.
15 +Woody Code Snippets is a WordPress plugin that helps you insert code into your site without editing theme files.
16 16
17 -The PHP code is between special tags ("[insert_php]" instead of "<?php" and "[/insert_php]" instead of "?>").
17 +Many WordPress users still add PHP, JavaScript, CSS, tracking pixels, or ad scripts directly into functions.php, header.php, or footer.php. This approach breaks easily when themes update and becomes hard to manage as your site grows.
18 18
19 -The PHP code runs as the page is sent to the browser. Output of the PHP code is published directly onto the post or page where the PHP code between the special tags is located.
19 +Woody solves this by giving you a centralized code snippet manager where you can safely add header scripts, footer scripts, PHP snippets, custom CSS, JavaScript, and HTML from the WordPress admin.
20 20
21 -The code between the tags must be complete in and of itself. References to variables or code blocks outside the area between the tags will fail. See the "more information" URL for an explanation of this.
21 +You can use Woody as a header and footer code manager, a PHP snippet plugin, or a way to reuse content and scripts across your site using shortcodes or automatic insertion.
22 22
23 -Examples of use:
23 +Each snippet can be enabled or disabled instantly, placed in specific locations like before content or after paragraphs, and shown only when certain conditions are met.
24 24
25 -* Publish local time (users' computer clock settings being unreliable).
25 +### Quick Links
26 26
27 -* Insert output of a PHP script, or just to run a script whether or not it generates output.
27 +📘 [Documentation](https://docs.themeisle.com/collection/2410-woody-code-snippets) – Complete setup and configuration guide
28 28
29 -* Check/manipulate cookies or other actions that JavaScript can accomplish when using JavaScript is undesirable.
29 +💬 [Support Forum](https://wordpress.org/support/plugin/insert-php/) – Community help and expert support
30 30
31 -More information about the Insert PHP plugin can be found here:
32 -http://www.willmaster.com/software/WPplugins/go/iphphome_iphplugin
31 +⭐ [Go Pro](https://woodysnippet.com/upgrade/?utm_source=wordpressorg&utm_medium=readme&utm_campaign=woody_quicklinks) – Unlock advanced features and priority support
33 32
34 -== Installation ==
33 +### What Problems Does Woody Solve?
35 34
36 -1. Download insert-php.zip from the "download" link on the web page where you're viewing this or from http://www.willmaster.com/download/DownloadHandlerLink.php?file=insert-php.zip (direct download link)
35 +Woody is built for real WordPress workflows. It helps you:
37 36
38 -1. Decompress the file contents.
37 +- Insert code into headers and footers without editing theme files
38 +- Add analytics scripts, tracking pixels, and ad code safely
39 +- Manage PHP snippets without touching functions.php
40 +- Reuse scripts and content across pages using shortcodes
41 +- Control where code runs using placement rules and conditions
42 +- Enable, disable, or roll back snippets without breaking your site
39 43
40 -1. Upload the insert-php folder to your WordPress plugins directory (/wp-content/plugins/).
44 +Whether you are building client sites, running marketing experiments, or maintaining your own project, Woody gives you control without unnecessary complexity.
41 45
42 -1. Activate the Insert PHP plugin from the WordPress Dashboard.
46 +### How It Works
43 47
44 -1. See instructions for using the plugin.
48 +Woody lets you create code snippets and control where and when they run, all from the WordPress admin.
45 49
50 +#### Example #1 ####
51 +Create a JavaScript snippet and add your analytics or tracking code.
52 +Place it in the site header and add a condition to exclude administrators so your own visits are not tracked.
53 +
54 +#### Example #2 ####
55 +Create a text snippet with reusable content or a shortcode.
56 +Add conditions to show it only to logged-in users, then insert it anywhere using the snippet shortcode or automatic placement rules.
57 +
58 +This makes it easy to manage repeated logic and content without editing theme files.
59 +
60 +### Who Should Use Woody Code Snippets
61 +
62 +Woody is designed for:
63 +
64 +- Developers who want a structured way to manage custom code
65 +- Marketers adding analytics, ads, and tracking scripts
66 +- Solopreneurs who want flexibility without editing theme files
67 +- Agencies managing multiple sites and shared snippets
68 +
69 +If you regularly need to insert code into WordPress, Woody fits naturally into your workflow.
70 +
71 +### Supported Snippet Types
72 +
73 +Woody supports multiple snippet types, so you can manage all custom code in one place. You can create:
74 +
75 +- **PHP snippets** for functions, hooks, classes, and global variables
76 +- **JavaScript snippets** for analytics, integrations, and interactive features
77 +- **CSS snippets** to add custom styles without editing theme files
78 +- **HTML snippets** for markup and layout elements
79 +- **Text snippets** using the WordPress editor for reusable content
80 +- **Ad snippets** for ads and banners
81 +- **Universal snippets** that combine PHP, HTML, CSS, and JavaScript
82 +
83 +### Why do you need this plugin?
84 +
85 +- Insert Google AdSense Ads, Amazon Native Shopping Contextual Ads, Yandex Direct Ads, Media.net on your website.
86 +- Insert Google Analytic Tracking code, Yandex Metrika Tracking Code, Yandex Counter to Header, Footer.
87 +- Insert PHP Code Snippets and execute on your website. Register PHP functions, classes, global variables everywhere.
88 +- Insert Social media widgets, add any external resources widgets.
89 +- Insert Facebook Pixels, Facebook Scripts, Facebook og:image Tag, Google Conversion Pixels, Vk Pixels.
90 +
91 +### Header and Footer Code Management
92 +
93 +Woody works as a full header and footer code manager.
94 +
95 +You can insert snippets:
96 +- Into the site header before the closing </head> tag
97 +- Into the site footer before the closing </body> tag
98 +
99 +Common examples include analytics scripts, tracking pixels, verification tags, and global JavaScript or CSS.
100 +
101 +### Advanced Placement Options
102 +
103 +Beyond headers and footers, Woody lets you insert snippets into specific locations.
104 +
105 +You can place code:
106 +
107 +- Before or after post or page content
108 +- Before or after a specific paragraph
109 +- Before or after a post
110 +- Inside archives, categories, and taxonomy pages
111 +- Between posts on archive pages
112 +
113 +#### WooCommerce Pages
114 +
115 +Woody supports automatic snippet placement on WooCommerce pages.
116 +
117 +You can insert snippets:
118 +
119 +- Before or after the product list
120 +- Before or after a single product
121 +- Before or after the single product summary
122 +- After the product title, price, or excerpt
123 +
124 +Common use cases include conversion tracking, promotional banners, custom JavaScript, and trust notices.
125 +
126 +### Shortcodes and Reusable Content ###
127 +
128 +Woody supports shortcodes so you can insert snippets exactly where you need them. You can place snippets inside posts, pages, widgets, and page builders.
129 +
130 +With [Pro](https://woodysnippet.com/upgrade/?utm_source=wordpressorg&utm_medium=readme&utm_campaign=woody_shortcode), you can define custom shortcode names that are readable and portable across sites.
131 +
132 +### Conditional Logic for Code Snippets
133 +
134 +Woody allows you to control when a snippet is displayed.
135 +
136 +[FREE] Available in the free version:
137 +- User role and registration date
138 +- Page, post type, or taxonomy
139 +- Referrer or cookie value
140 +
141 +[PRO] Advanced conditions available in [Pro](https://woodysnippet.com/upgrade/?utm_source=wordpressorg&utm_medium=readme&utm_campaign=woody_conditions):
142 +- Device type, browser, and operating system
143 +- JavaScript availability or ad blocker detection
144 +- User country, visit depth, time of day, and total visits
145 +
146 +Conditions can be combined using AND and OR logic.
147 +
148 +Unlock advanced conditions with [Woody Pro](https://woodysnippet.com/upgrade/?utm_source=wordpressorg&utm_medium=readme&utm_campaign=woody_conditions).
149 +
150 +### Snippet Management and Organization
151 +
152 +Woody includes features to keep snippets organized and easy to manage.
153 +
154 +You can:
155 +- Enable or disable snippets instantly
156 +- Control execution order using priorities
157 +- Tag and clone snippets
158 +- Import and export snippets between sites
159 +
160 +### Code Revisions and Rollback [PRO] ###
161 +
162 +With [Pro](https://woodysnippet.com/upgrade/?utm_source=wordpressorg&utm_medium=readme&utm_campaign=woody_restore), Woody automatically saves snippet revisions. You can view previous versions, compare changes, and restore earlier revisions if something goes wrong.
163 +
164 +This adds an extra layer of safety when working with custom code.
165 +
166 +### Cloud Templates and Sync [PRO] ###
167 +
168 +[Woody Pro](https://woodysnippet.com/upgrade/?utm_source=wordpressorg&utm_medium=readme&utm_campaign=woody_cloud) includes cloud-based snippet templates.
169 +
170 +You can save snippets as templates and reuse them across multiple sites, which is especially useful for agencies and developers managing repeated setups.
171 +
172 +
173 +### Settings and Developer Options
174 +
175 +Woody includes advanced settings for fine-grained control.
176 +
177 +You can:
178 +
179 +- Preserve HTML entities without automatic conversion
180 +- Execute shortcodes inside snippets
181 +- Enable error email notifications
182 +- Automatically activate snippets on save
183 +- Fully remove plugin data on uninstall
184 +
185 +#### Code Editor
186 +
187 +The built-in editor includes:
188 +- Syntax highlighting and line numbers
189 +- Configurable indentation and tab size
190 +- Optional line wrapping
191 +- Automatic bracket and quote closing
192 +- Highlighting of matching variables and functions
193 +
194 +### Use This Plugin Responsibly ###
195 +
196 +Woody allows you to run custom PHP, JavaScript, and CSS on your site. Always make sure you understand the code you add. Using unverified or outdated scripts may affect site security or stability. On multisite installations, only trusted administrators should have access to snippet creation.
197 +
198 +Woody includes safeguards such as snippet disabling, revisions, and error notifications, but it cannot validate third-party code you choose to run.
199 +
200 +### Support ###
201 +
202 +Need help? Open a new thread in the WordPress [support forum](https://wordpress.org/support/plugin/insert-php/), and we will be happy to assist.
203 +
204 +### Documentation ###
205 +
206 +Learn how to make the most of Woody with our detailed and user-friendly [documentation](https://docs.themeisle.com/collection/2410-woody-code-snippets).
207 +
208 +Woody is backed by [Themeisle](https://themeisle.com/?utm_source=wordpressorg&utm_medium=readme&utm_campaign=woody), trusted by over 1 million WordPress users worldwide.
209 +
210 +== Installation ==
211 +
212 +1. Upload the plugin files to the `/wp-content/plugins/plugin-name` directory, or install the plugin through the WordPress plugins screen directly.
213 +2. Activate the plugin through the 'Plugins' screen in WordPress
214 +3. Use the PHP Snippets -> Add snippet, to create a new snippet
215 +
46 216 == Frequently Asked Questions ==
47 217
48 -= How do I use this thing? =
218 += How to pass attributes to a snippet using a shortcode? =
49 219
50 -Make a copy of the working PHP code to be used in a post or a page.
220 +Add a new attribute “simple” to the shortcode [wbcr_php_snippet id=”xx” simple=”example”].
221 +The attribute “simple” is available in the snippet as the $simple variable. The attribute name can contain Latin letters and lowercase digits. You can also use underscore.
51 222
52 -Replace "&lt;?php" on the first line with "[insert_php]". Replace "?&gt;" on the last line with "[/insert_php]".
223 += The snippet code executed with an error and I cannot change it, what should I do? =
53 224
54 -Paste the code into your post or page.
225 +Don’t worry. Mistakes can happen, even with experienced users. Woody includes a Safe Mode that temporarily disables snippet execution so you can fix the issue.
55 226
56 -Examples are here: http://www.willmaster.com/software/WPplugins/go/iphpinstructions_iphplugin
227 +1. Go to the safe mode by this link: http://your-site-name.dev/wp-admin/?wbcr-php-snippets-safe-mode
228 +2. Edit the snippet in which you made a mistake;
229 +3. Leave safe mode by clicking the link: http://your-site-name.dev/wp-admin/?wbcr-php-snippets-disable-safe-mode
57 230
58 -= Can I have more than one place with PHP code on individual posts and pages? =
231 +Great, now you should not have any issues!
59 232
60 -Yes. I have found no limit to the number of places PHP code can be inserted into a post or page. Probably there is no WordPress software limit. There may be a server memory limit of your PHP code uses a lot of memory.
233 += How to pass page content to a snippet? =
61 234
62 -= Does the PHP output need to have paragraph and line break HTML formatting codes? =
235 +Pretty often we’d like to hide a part of a text or a form on particular pages and set up display conditions. You need to wrap the content you’d like to pass to a snippet with shortcodes [wbcr_php_snippet id=”xx” simple=”example”]page content[/wbcr_php_snippet]. Page content in a snippet is located in the $content variable.
63 236
64 -No. HTML paragraph and line break formatting are applied to PHP output.
237 += Does plugin support Gutenberg editor? =
65 238
66 -= Do I put the PHP code into content at the "Visual" tab or the "HTML/Text" tab? =
239 +Yes, it does. You can add there special blocks from our plugin.
67 240
68 -Use the HTML/Text tab. While the Visual tab will, sometimes, the HTML/Text tab allows working with the code without the visual formatting.
241 += I used the old plugin Insert php 1.3.0. What should I expect in 2.x.x version? =
69 242
70 -= Why can't I set cookies or do a browser redirect? =
243 +The old version of Insert php 1.3.0 worked this way: you wrapped PHP code with shortcodes [insert_php]php code[/insert_php]. Starting from version 2.x.x and higher, you need to create special snippets to place PHP code. Use a snippet shortcode [wbcr_php_snippetid=”xx”] instead of shortcodes [insert_php][/insert_php] to execute PHP code on pages.
244 +We recommend you to move all your code from the post editor to snippets.
245 +Important! TinyMCE converts double quotes to special characters. So if you place this code on the snippet editor, it may not work. To avoid this problem, replace all special symbols of double quotes in your PHP code with classic double quotes.
71 246
72 -With PHP, cookies are set in the web page header lines, before any page content is processed. Redirects, too, are done in the header lines. When PHP code is within a post or a page, all the header lines have already been sent, along with part of the content. At that point, it is too late to set cookies or redirect with PHP.
247 += Is there any plugin documentation? =
73 248
74 -= I get a "Parse error: ..." What do I do now? =
249 +You can find the detailed documentation in [here](https://docs.themeisle.com/collection/2410-woody-code-snippets).
75 250
76 -Unless the source code of the plugin has been changed or somehow became corrupted, the parse error is likely to be in the PHP code inserted into the post or page. Example:
251 += Is plugin compatible with GDPR? =
77 252
78 -Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /public_html/wp331/wp-content/plugins/insert_php.php(48) : eval()'d code on line 5
253 +Yes, the plugin is fully compatible with GDPR.
79 254
80 -Either within or at the end of the parse error message you'll find something like this:
255 += Can the plugin be completely uninstalled? =
81 256
82 -eval()'d code on line 5
257 +Go to the settings page and enable the "Complete uninstall" option. Than, when you delete Woody Code Snippets using the ‘Plugins’ menu in WordPress it will clean up the database table and a few other bits of data. Be careful not to remove Woody Code Snippets by deleting it from the Plugins menu unless you want this to happen.
83 258
84 -The error is on the indicated eval()'d code line number of the PHP code you are inserting ("5" in the example). At the PHP code you inserted, count down the number of lines indicated. You'll find the error at that line.
259 += How to remove plugin via ftp client? =
85 260
86 -If you have PHP code inserted in more than one place, the error message may apply to any of those places. Temporarily remove or disable them, one at a time, until you determine which one the error message applies to.
261 +You have to delete the folder with the plugin, which is located here: wp-content/plugins/insert-php
262 +This will not clear the plugin data from the database. You have to remove the plugin through the admin panel with the "Full Uninstall" option enabled in order to completely clear the plugin data.
87 263
88 -If Insert PHP is used with an include() function, the include()'d file may be spawning the error message. In that case, the file name being include()'d and the line number of the error should be somewhere within the error message.
264 += Will I lose my snippets if I change the theme or upgrade WordPress? =
89 265
90 -When the error is located, correct it and try again.
266 +No, the snippets are stored in the WordPress database and are independent of the theme and unaffected by WordPress upgrades.
91 267
268 += Does plugin work with multisite? =
269 +
270 +The plugin doesn’t support multi-sites setup.
271 +
92 272 == Screenshots ==
93 273
94 -No screenshots available.
274 +1. Manage all snippets from one dashboard
275 +2. Set conditions to control when snippets load
276 +3. Choose the exact location where the code runs
277 +4. Catch code errors before they affect your site
278 +5. Insert snippets directly inside the editor
279 +6. Compare changes and restore previous versions
280 +7. Use custom shortcode names for reusing snippets
95 281
96 282 == Changelog ==
97 283
98 -= 1.0 =
99 -First public distribution version.
284 +##### Version 2.7.7 (2026-09-14)
100 285
101 -= 1.1 =
102 -Bug fix. Added ob_end_flush() and changed variable names to remove opportunity for conflict with variable names in user-provided PHP code.
286 +- Improved the plugins reliability with expanded automated testing
287 +- Fixed fatal PHP error details missing from the Safe Mode screen for administrators.
288 +- Fixed PHP shortcodes crashing pages when a stored snippet has invalid PHP.
289 +- Improved the Woody Snippets block setup when no snippets are available.
290 +- Fixed PHP shortcodes that stopped page indexing after a snippet error.
291 +- Fixed Safe Mode to stop all shortcode snippets for administrators.
292 +- Fixed PHP shortcodes that could crash pages after a snippet runtime error.
293 +- Fixed snippet saves that crashed when a function name was already in use.
294 +- Fixed frontend pages stopping when a PHP shortcode snippet has a runtime error.
103 295
104 -= 1.2 =
105 -Changed handling of content intended to remove conflict when Insert PHP is used within content that other plugins also handle.
106 296
297 +
298 +
299 +##### Version 2.7.6 (2026-07-22)
300 +
301 +- Fixed a PHP warning that could appear in server logs when the plugin checked incoming REST API requests.
302 +- Fixed an issue where a snippet error message could be shown to site visitors instead of only to administrators.
303 +- Updated dependencies
304 +
305 +
306 +
307 +
308 +##### Version 2.7.5 (2026-05-15)
309 +
310 +- Improved compatibility with PHP 8.1
311 +- Added display of actual PHP error message on the snippet error splash page
312 +
313 +
314 +
315 +
316 +##### Version 2.7.4 (2026-04-27)
317 +
318 +- Fixed error caused by dependencies
319 +
320 +
321 +
322 +
323 +##### Version 2.7.3 (2026-04-23)
324 +
325 +- Added an option to disable the Active Snippets notice from the menu
326 +- Fixed issue with tags area is not visible unless you enable/disable it from Screen Options
327 +- Fixed issue with text snippets paragraph formatting when rendered via shortcode
328 +- Fixed issue where Tags and Custom shortcode names are not imported when importing snippets
329 +- Enhanced security
330 +- Updated dependencies
331 +
332 +
333 +
334 +
335 +##### Version 2.7.2 (2026-01-27)
336 +
337 +- This release focuses on improving the security and robustness of snippet type handling in the codebase.
338 +
339 +
340 +
341 +
342 +##### Version 2.7.1 (2026-01-21)
343 +
344 +- Added a compatibility check for the Woody Pro version during activation to prevent fatal errors.
345 +
346 +#### Version 2.7.0 (2026-01-19)
347 +
348 +### New Features
349 +
350 +- Export and clone functionality now available in free version
351 +- Active snippets menu item for better snippet management
352 +- New feature to receive emails during fatal error caused by snippets
353 +- New Improved Plugin UI.
354 +- Non-premium snippets can now be accessed via API
355 +- Use IPHub as Geolocation Tool. [PRO]
356 +
357 +### Enhancements
358 +
359 +- Improved PHP code validation before saving
360 +- Better Location terminology for improved clarity
361 +- Added save hotkey support
362 +- Enhanced snippet labels in library for easier identification
363 +- Improved Add Snippet button UI for better user experience
364 +- Updated license management system (SDK-based approach)
365 +
366 +### Bug Fixes
367 +
368 +- Fixed translation and deprecation errors
369 +- Fixed safe mode functionality
370 +- Fixed location number field not appearing with certain conditions
371 +- Fixed inactive snippets not being exported
372 +- Fixed RTL (right-to-left) issues in toggle controls
373 +- Fixed sync modal not appearing for advert type snippets
374 +- Fixed license message display issues
375 +- Fixed critical error with export logs tool permission checking
376 +- Fixed trashing posts from removing associated metadata
377 +
378 +##### Version 2.6.1 (2025-10-21)
379 +
380 +- fix error with missing asset files
381 +
382 +#### Version 2.6.0 (2025-10-20)
383 +
384 +Woody Snippets plugin has been acquired by Themeisle 🎉
385 +We’re happy to announce that Themeisle is now the new owner of Woody Snippets. This acquisition will help ensure the plugin’s continued development, better support, and exciting new updates in the future.
386 +
387 +Your existing setup will continue to work as usual — no action is required on your part.
388 +
389 +
390 += 2.5.1 =
391 +* Fixed: [insert_php] shortcodes are no longer supported due to the security risk to your site.
392 +* Fixed: Compatibility with Wordpress 6.5
393 +* Fixed: Compatibility with php 8.3
394 +
395 += 2.5.0 =
396 +* Fixed: Compatibility with Wordpress 6.4
397 +* Fixed: Compatibility with php 8.2
398 +
399 += 2.4.10 =
400 +* Minor fixes
401 +* New API for Snippets Library
402 +
403 += 2.4.9 =
404 +* WP 6.2 compatibility
405 +
406 += 2.4.8 =
407 +* Fixed: Reset priority when saving snippet
408 +
409 += 2.4.7 =
410 +* Fixed: Some bugs and issues
411 +
412 += 2.4.6 (31.05.2022) =
413 +* Fixed: Compatibility with Wordpress 6.0
414 +* Fixed: Some bugs and issues
415 +
416 += 2.4.4 (23.03.2022) =
417 +* Fixed: Compatibility with Wordpress 5.9
418 +* Added: Compatibility with premium plugin
419 +
420 += 2.4.4 (23.03.2022) =
421 +* Allow post editors to use snippet shortcodes
422 +* Fixed a bug in TinyMCE
423 +
424 += 2.4.3 =
425 +* Updated plugin framework
426 +* Added warning notice that using the plugin may be dangerous
427 +* Added additional security measures for multisites
428 +
429 += 2.4.2 =
430 +* Fix: Snippets library not load
431 +* Turn off redirect after activate
432 +
433 += 2.4.1 =
434 +* Fix: Snippets not working after updating to version 2.4.0, if Woocommerce is activated
435 +
436 += 2.4.0 =
437 +* Add: Insertion locations for Woocommerce (PRO)
438 +* Add: Snippet conditional execution logic for Woocommerce
439 +* Tweak: Improved performance
440 +* Up the minimum version of PHP -> 7.0
441 +
442 += 2.3.10 =
443 +* Fixed: Hot fix
444 +
445 += 2.3.9 =
446 +* Fixed: jQuery.fn.load() and other bugs after update to Wordpress 5.5
447 +
448 += 2.3.8 =
449 +* Added: "Execute shortcodes in snippets" option in plugin settings. OFF by default!
450 +
451 += 2.3.7 =
452 +* FIX: WPML compatibility
453 +
454 += 2.3.6 =
455 +* Add WPML compatibility
456 +* Fix snippet switch
457 +
458 += 2.3.5 =
459 +* Fixed "Warning: filter_var()". The attributes of the snippets work
460 +
461 += 2.3.2 =
462 +* Fixed: compatibility with PHP 7.4.
463 +* Added: JS snippets support attributes
464 +* Added: Filter by type of the snippet.
465 +* Added: Priority of snippets execution.
466 +* Added: Sorting by priority.
467 +* Added: Sorting by name.
468 +* Added: New Advertisement snippet type.
469 +* Added: Conditional logic for current page taxonomies
470 +
471 += 2.3.1 (26.11.2019) =
472 +* Fixed: Bug with images on the about page.
473 +
474 += 2.3.0 (19.11.2019) =
475 +* Fixed: Minor bugs
476 +* Fixed: Import/Export. When user selected some files and clicked to submit, he could be get error "No files selected!"
477 +* Added: Video preview for every snippets in the library.
478 +
479 += 2.2.9 (16.09.2019) =
480 +* Fixed: Due to a problem with WPML, we were forced to cancel the added WPML compatibility in the previous version.
481 +* Fixed: Security issue
482 +
483 += 2.2.8 (13.09.2019) =
484 +* Added: Compatibility with WPML proposed in the support [forum](https://wpml.org/forums/topic/header-and-foster-scripts-translation/)
485 +* Fixed: Security issue
486 +* Fixed: Some users saw the code in the plugin description column. This could lead to JavaScript execution, which led to problems using the plugin [Issue #1](http://forum.webcraftic.com/threads/script-tags-execute-from-description-list.282/), [Issue #2](http://forum.webcraftic.com/threads/insert-php-code-appears-in-description-column.407/#post-1377).
487 +* Fixed: Conditional logic for taxonomies worked only inside singular posts. In taxonomies, tags, and categories, this did not work [Issue #3](http://forum.webcraftic.com/threads/kak-propisat-vyvod-snipeta-na-konkretnoj-stranice.399/)
488 +
489 += 2.2.7 =
490 +* Fixed: Critical php errors
491 +
492 += 2.2.6 =
493 +* Fixed: Some issues with plugin security.
494 +* Fixed: After save JS snippets, the html tags in javascript code were cut out in compiled code.
495 +* Fixed: Minor bugs
496 +
497 += 2.2.5 =
498 +* Fixed: Some issues with plugin security.
499 +* Fixed: When you save the php snippet (running everywhere), there is a conflict with himself.
500 +* Fixed: A notification to install the premium version did not hidden, even if the premium plugin was installed.
501 +* Fixed: Removed spaces in beginning and end of the universal snippets. Please make fix your snippets if you have missing spaces at the beginning and end of the universal snippet.
502 +
503 += 2.2.4 =
504 +* Fixed: Php error (Cannot declare class Post)
505 +* Fixed: Some hooks did not work, when using php snippet with space to run everywhere.
506 +* Fixed: Slashes removed in css snippet: \f058 becomes f058
507 +
508 += 2.2.2 =
509 +- Fixed: Disabled wpautop for snippets
510 +- Fixed: Added compatibility with plugin Robin image optimizer
511 +
512 += 2.2.1 =
513 +- Warning: Support for the old shortcodes ([insert_php]) has been discontinued for new users. Users who have upgraded from version 1.3.0 still have support [insert_php].
514 +- Fixed: Removed warnings about support for old shortcodes for new users.
515 +- Fixed: Сkeditor editor over the code editor, the issue is related to The Rex theme
516 +- Fixed: Warning Invalid argument supplied for foreach(). (It’s the warning in plugin insert-php (method getMetaOption) because get_post_meta could return non-array value if $single is true.)
517 +- Fixed: Some users lost the code editor
518 +- Fixed: Infinite redirect after updating or installing a plugin
519 +- Fixed: Infinite redirect on multisites
520 +- Added: New snippet type: Html. Perfect for you if you do not use php code.
521 +- Added: New snippet type: JavaScript
522 +- Added: New snippet type: Css
523 +- Added: JS and CSS snippets can be asset as external files
524 +- Added: Compatible with Wordpress 5.2
525 +- Added: Multisite support
526 +- Added: Premium plugin support added
527 +- Added: Added setting: "Complete Uninstall". When the plugin is deleted from the Plugins menu, also delete all snippets and plugin settings.- Added: Added setting: "Complete Uninstall". When the plugin is deleted from the Plugins menu, also delete all snippets and plugin settings.
528 +- Added: Added setting: "Support old shortcodes [insert_php]". If you used our plugin from version 1.3.0, then you could use the old shortcodes [insert_php][/insert_php]; from version 2.2.0 we disabled this type of shortcodes by default, as their use is not safe. If you still want to execute your php code via [insert_php][/insert_php] shortcodes, you can enable this option.
529 +- Added: Added setting: "Keep the HTML entities, don't convert to its character". If you want to use an HTML entity in your code (for example > or "), but the editor keeps on changing them to its equivalent character (> and " for the previous example), then you might want to enable this option.
530 +
531 += 2.1.91 =
532 +- Fixed: some users were redirected to about page an infinite number of times
533 +- Fixed: safe mode did not work, since it could be started only after the snippet
534 +- Added: php lint for code editor
535 +- Added: hook wbcr/factory/bootstrap/cache_enable to disable caching of Woody assets. Some users use cdn, it may be useful to them.
536 +
537 += 2.1.9 =
538 +- Fixed: demo snippets were created several times, because of which it could bring a headache
539 +- Fixed: it was impossible to hide metaboxing with ads
540 +- Fixed: some users were redirected to about page an infinite number of times
541 +
542 += 2.1.7 =
543 +- Fixed: Multisite minor bug
544 +
545 += 2.1.6 =
546 +- Fixed: shortcodes don't work in No Cache Ajax Widgets plugin
547 +- Fixed: in Gutenberg when creating a block, the drop-down list is not saved the state of selected option
548 +- Fixed: menu was not displayed in multisite
549 +- Fixed: fixed php bug with import_upload_size_limit function in multisite
550 +
551 += 2.1.5 =
552 +- Fixed: It was impossible to change theme style for code editor
553 +- Fixed: After updating plugin, formatting for code editor was destroyed
554 +- Fixed: Safe mode doesn't work for scripts running with shortcode [insert_php]
555 +
556 += 2.1.4 =
557 +- Fixed: plugin tries to process shortcodes in php code, which causes conflict with do_shortcode
558 +- Fixed: visual composer compatibility added
559 +
560 += 2.1.3 =
561 +- Fixed: bug with escape html code in snippets editor, if you entered the textarea tag, it could destroy the editor.
562 +
563 += 2.1.2 =
564 +- Added: 3 new snippet types. You can use PHP, text, and universal snippets.
565 +- Added: Snippet export/import.
566 +- Added: Conditional logic for text and universal plugins. You can show/hide snippets based on certain conditions.
567 +- Added: Gutenberg support. A new unit for Gutenberg has been added. There you can select available snippets. You can also send content from the editor to a snippet.
568 +- Improved: Support of attributes that are sent to snippets through shortcodes. Now you can use shortcode attributes to send additional values inside snippets. You can limit the number of supported attributes.
569 +- Added: WordPress 5.x.x support.
570 +- Improved: The code editor support. Now it has an inbuilt syntax checker and auto-complete.
571 +- Added: TinyMCE rich-text editor for text snippets.
572 +- Added: Snippet auto-placement on all website. You can automatically place the code to head or footer on all pages. Or you can insert the ad code to all posts (check out the documentation to learn more).
573 +- Added: demo snippet auto-creation on plugin installation.
574 +- Added: special feature to uninstall the plugin. If enabled, all snippets and plugin data will be removed along with the plugin.
575 +- Fixed: error in values sent through shortcode attributes.
576 +- Fixed: error in visual unit preview in Gutenberg editor.
577 +- Fixed: snippet counter for tags.
578 +- Changed: plugin name.
579 +- Changed: plugin icons.
580 +- Changed: plugin description.
581 +
582 += 2.0.6 =
583 +* Changed the way to safely save snippets. Now in case of an error, you will not lose the snippet changes. And also now there is no verification for snippets created for shortcodes, because of what many users had a problem with saving their old code.
584 +* You can get the values of the variables from the shortcode attributes. For example, if you set the my_type attribute for the shortcode [wbcr_php_snippet id="2864" my_type="button"], you can get the value of the my_type attribute in the snippet by calling $my_type var.
585 +* Added feature to set tags for snippets
586 +* Added an instruction on how to export and import your own snippets
587 +* Some bugs fixed.
588 +
589 += 2.0.4 =
590 +* Fixed critical bug with $wp_query. It was a conflict with some plugins that overwritten the global variable $wp_query.
591 +* All created and updated snippets by default, are now active.
592 +
593 += 2.0.2 =
594 +Fixed a bug where you do not have enough permissions to view the page.
595 +
596 += 2.0.1 =
597 +Attention! This new 2.0 plugin version, we added the ability to insert php code using snippets. This is a more convenient and secure way than using shortcodes [insert_php] code execute [/ insert_php]. However, for compatibility reasons, we left support for [insert_php] shortcodes, but we will depreciate them in the next versions of the plugin.
598 +
599 +We strongly recommend you to transfer your php code to snippets and call them in your posts/pages and widgets using [wbcr_php_snippet id = "000"] shortcodes.
600 +
107 601 = 1.3 =
108 602 Fixed issue with str_replace() when haystack contained a slash character.
109 603
110 -== Upgrade Notice ==
604 += 1.2 =
605 +Changed handling of content.
111 606
112 607 = 1.1 =
113 608 Bug fix. Added ob_end_flush(); and changed variable names to remove opportunity for conflict with user-provided PHP code.
114 609
115 -= 1.2 =
116 -Changed handling of content.
117 -
118 -= 1.3 =
119 -Fixed issue with str_replace() when haystack contained a slash character.
120 -
610 += 1.0 =
611 +First public distribution version.