PluginProbe
Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts / 2.7.9
Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts v2.7.9
2.7.9 2.7.8 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 All 30 releases
← All changes | readme.txt +288 -150 2.6.0 → 2.7.9 View file →
@@ -1,177 +1,213 @@
1 -=== Woody code snippets - Insert Header Footer Code, AdSense Ads ===
1 +=== Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts ===
2 2 Contributors: themeisle
3 -Donate link: https://woodysnippet.com
4 -Tags: code snippets, woocommerce, shortcode, adsense, header
3 +Tags: code snippets, php, insert php, header footer, custom css
5 4 Requires at least: 5.6
6 -Tested up to: 6.8
5 +Tested up to: 7.1
7 6 Requires PHP: 7.0
8 -Stable tag: 2.6.0
7 +Stable tag: 2.7.9
9 8 License: GPLv2 or later
10 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html
11 10
12 -Insert Headers and Footers, executes PHP code, uses conditional logic to insert ads, text, media content and external service’s code.
11 +Insert PHP, JavaScript, CSS, HTML, ads & tracking code into WordPress headers, footers, pages & content with conditional logic — no theme editing.
13 12
14 13 == Description ==
15 14
16 -- Stop re-using the same content over and over again!
17 -- Stop inserting PHP code to function.php!
18 -- Stop adding google analytics, yandex metrics and external code to header and footer php files!
19 -- Stop wasting time on changing 100 pages with repeated content!
15 +Woody Code Snippets is a WordPress plugin that helps you insert code into your site without editing theme files.
20 16
21 -Woody Code Snippets will make your life so much easier. The plugin helps to create and store code snippets or duplicated text in a special library at the admin bar of your website. Use the shortcode to add a snippet anywhere on your website. Or do it automatically, for example: head, footer and post injections. You can show or hide code snippets using conditional logic.
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.
22 18
23 -### Why do you need this plugin? ###
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.
24 20
25 -- Insert Headers and Footers
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 +
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 +
25 +### Quick Links
26 +
27 +📘 [Documentation](https://docs.themeisle.com/collection/2410-woody-code-snippets) – Complete setup and configuration guide
28 +
29 +💬 [Support Forum](https://wordpress.org/support/plugin/insert-php/) – Community help and expert support
30 +
31 +⭐ [Go Pro](https://woodysnippet.com/upgrade/?utm_source=wordpressorg&utm_medium=readme&utm_campaign=woody_quicklinks) – Unlock advanced features and priority support
32 +
33 +### What Problems Does Woody Solve?
34 +
35 +Woody is built for real WordPress workflows. It helps you:
36 +
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
43 +
44 +Whether you are building client sites, running marketing experiments, or maintaining your own project, Woody gives you control without unnecessary complexity.
45 +
46 +### How It Works
47 +
48 +Woody lets you create code snippets and control where and when they run, all from the WordPress admin.
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 +
26 85 - Insert Google AdSense Ads, Amazon Native Shopping Contextual Ads, Yandex Direct Ads, Media.net on your website.
27 86 - Insert Google Analytic Tracking code, Yandex Metrika Tracking Code, Yandex Counter to Header, Footer.
28 87 - Insert PHP Code Snippets and execute on your website. Register PHP functions, classes, global variables everywhere.
29 88 - Insert Social media widgets, add any external resources widgets.
30 89 - Insert Facebook Pixels, Facebook Scripts, Facebook og:image Tag, Google Conversion Pixels, Vk Pixels.
31 -- Show or hide code snippets based on conditional logic.
32 -- You can save templates of posts or page builders, quotes, and galleries to re-use them on your website.
33 -- Roll back changes with Code Revisions **[(Premium)](https://woodysnippet.com/pricing/ "Get PRO")**
34 -- Cloud storage for snippets **[(Premium)](https://woodysnippet.com/pricing/ "Get PRO")**
35 -- Synchronize snippets between your sites using the cloud (**Coming soon**)
36 -- Ready-made snippets in our cloud that will help you solve some of your cases (**[Premium](https://woodysnippet.com/pricing/ "Get PRO")**)
37 90
38 -### Need premium features? ###
91 +### Header and Footer Code Management
39 92
40 -**[Get Premium version](https://woodysnippet.com/pricing/)**
93 +Woody works as a full header and footer code manager.
41 94
42 -### How It Works? ###
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
43 98
44 -#### Example #1 ####
45 - You create a new javascript snippet and add a code you’d like to place on a website. Html snippet editor provides you with tooltips and highlights errors in syntax. Now you need to define where to put a code. For example, you can place the code in header, footer of all pages. This works great for Google Analytics. Create an additional condition: do not show this code to the administrator. It will prevent from tracking user role.
99 +Common examples include analytics scripts, tracking pixels, verification tags, and global JavaScript or CSS.
46 100
47 -#### Example #2 ####
48 -You create a text snippet and add a repeated text or a template. You can add a shortcode for the contact form, in case it’s universal for all website pages. Now you can add conditions to show this content to registered users only. Save the text snippet and go to editing pages. If you use the Gutenberg editor, you need to select a special unit. For the classic editor, click the icon of our plugin and add a shortcode of your new snippet.
49 -As you can see, working with snippets is super easy!
101 +### Advanced Placement Options
50 102
51 -https://youtu.be/FNoNsl_jy2k
103 +Beyond headers and footers, Woody lets you insert snippets into specific locations.
52 104
53 -### All Plugin Features:###
54 -* Header footer code manager
55 -* User-friendly code editor with syntax highlighter.
56 -* Create rich text ads using a classic WordPress editor TinyMCE.
57 -* Use shortcodes to place a snippet anywhere on a website.
58 -* Use a special unit to add a snippet in Gutenberg Editor.
59 -* You can send content and additional attributes to a snippet using a shortcode or a special unit (Gutenberg Editor).
60 -* Place post snippets automatically on all pages.
61 -* Run PHP code everywhere or for a certain shortcode.
62 -* Use JavaScript, CSS, and HTML code to create code snippets.
63 -* The Unlimited number of code snippets.
64 -* Use shortcodes of other plugins.
65 -* Show or hide code snippets based on conditional logic.
66 -* Export/Import of code snippets.
105 +You can place code:
67 106
68 -### Where Can You Place a Snippet Automatically? ###
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
69 112
70 -**All website:**
113 +#### WooCommerce Pages
71 114
72 -**Insert Headers and Footers on all pages:**
115 +Woody supports automatic snippet placement on WooCommerce pages.
73 116
74 -* Insert Header — code snippet is added to the source code in header before the &lt;/head&gt; tag.
75 -* Insert Footer — code snippet is added to the source code in footer before the &lt;/body&gt; tag.
117 +You can insert snippets:
76 118
77 -**Insert to Posts, pages, custom posts:**
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
78 123
79 -* Insert ads Before Post — post snippets is added to the source code before the &lt;/head&gt; tag.
80 -* Insert ads Before Content — page snippets is added before the post/page content.
81 -* Insert ads Before Paragraph — post snippets is added before a certain paragraph. A paragraph number is listed in the Location number field.
82 -* Insert ads After Paragraph — post snippets is added after a certain paragraph. A paragraph number is listed in the Location number field.
83 -* Insert ads After Content — page snippets is added after the post/page content.
84 -* Insert ads After Post — post snippets is added after the post/page.
124 +Common use cases include conversion tracking, promotional banners, custom JavaScript, and trust notices.
85 125
86 -**Insert to Categories, archives, tags, taxonomy:**
126 +### Shortcodes and Reusable Content ###
87 127
88 -* Insert AdSense Before Excerpt — snippet is added before the post/page preview.
89 -* Insert AdSense After Excerpt — snippet is added after the post/page preview.
90 -* Insert AdSense Between Posts — snippet is added between posts.
91 -* Insert AdSense Before post — snippet is added before a certain post. A post number is listed in the Location number field.
92 -* Insert AdSense After post — snippet is added after a certain post. A post number is listed in the Location number field.
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.
93 129
94 -**Insert to Woocommerce pages: [(Premium)](https://woodysnippet.com/pricing/ "Get PRO")**
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.
95 131
96 -* Before the list of products — Snippet will be placed before the list of products.
97 -* After the list of products — Snippet will be placed after the list of products.
98 -* Before a single product — Snippet will be placed before a single product
99 -* After a single product — Snippet will be placed after a single product
100 -* Before a single product summary — Snippet will be placed before a single product summary
101 -* After a single product summary — Snippet will be placed after a single product summary
102 -* After a product title — Snippet will be placed after a product title
103 -* After a product price — Snippet will be placed after a product price
104 -* After a product excerpt — Snippet will be placed after a product excerpt
132 +### Conditional Logic for Code Snippets
105 133
106 -* Insert AdSense After post — snippet is added after a certain post. A post number is listed in the Location number field.
134 +Woody allows you to control when a snippet is displayed.
107 135
108 -### What Are Conditional Logic Options to Show a Snippet? ###
136 +[FREE] Available in the free version:
137 +- User role and registration date
138 +- Page, post type, or taxonomy
139 +- Referrer or cookie value
109 140
110 -**User:**
111 -- Role
112 -- Registration Date
113 -- Cookie Name
114 -- Current Page
115 -- Current Referrer
116 -**Location:**
117 -- Post Type
118 -- Taxonomy page
119 -- Taxonomy of the page
120 -- Page
121 -**Technology [(Premium)](https://woodysnippet.com/pricing/ "Get PRO")**:
122 -- AddBlocker
123 -- Browser
124 -- Use cookie
125 -- Use JavaScript
126 -- Operation system
127 -- Device type
128 -**Auditory [(Premium)](https://woodysnippet.com/pricing/ "Get PRO")**:
129 -- User country (Use Webnet77 or MaxMind geo ip base)
130 -- Viewing depth
131 -- Attendance by time of day
132 -- Total number of visits
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
133 145
134 -#### Recommended our plugins ####
135 -* [Clearfy - all in one optimization tools](https://wordpress.org/plugins/clearfy/ "Download Clearfy")
136 -* [Robin Image Optimizer - save money on image compression](https://wordpress.org/plugins/robin-image-optimizer/ "Download Robin Image Optimizer")
137 -* [Titan Anti-spam & Security - save money on image compression](https://wordpress.org/plugins/anti-spam/ "Download Titan")
146 +Conditions can be combined using AND and OR logic.
138 147
139 -#### NEED SUPPORT, WE GOT YOU COVERED ####
140 -We provide free support for this plugin. If you are pushed with a problem, just create a new ticket. We will definitely help you!
148 +Unlock advanced conditions with [Woody Pro](https://woodysnippet.com/upgrade/?utm_source=wordpressorg&utm_medium=readme&utm_campaign=woody_conditions).
141 149
142 -1. **[Get starting free support](http://forum.webcraftic.com)**
143 -2. **[Documentation](https://woodysnippet.com/getting-started-with-woody-ad-snippets/)**
150 +### Snippet Management and Organization
144 151
145 -We are very need for your help with [translating Woody Code Snippets plugin](https://translate.wordpress.org/projects/wp-plugins/insert-php) into your native language. We want to make it international and understandable for everyone. Please contact us via email inside the plugin, or create a topic on our [support forum](http://forum.webcraftic.com) if you can help with the translations. In exchange for your help, we will give you better support and our premium plugins absolutely free!
152 +Woody includes features to keep snippets organized and easy to manage.
146 153
147 -### Setting options ###
148 -* 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.
149 -* Execute shortcodes in snippets - Execute shortcodes in the snippet code before executing the snippet.
150 -* Complete Uninstall - When the plugin is deleted from the Plugins menu, also delete all snippets and plugin settings.
151 -* 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.
152 -#### Code Editor ####
153 -* Code style - The optional feature. You can customize the code style in the snippet editor. The "Default" style is applied by default.
154 -* Indent With Tabs - The optional feature. Whether, when indenting, the first N*tabSize spaces should be replaced by N tabs. The default is false.
155 -* Tab Size - The optional feature. Pressing Tab in the code editor increases left indent to N spaces. N is a number pre-defined by you.
156 -* Indent Unit - The optional feature. The indent for code lines (units). Example: select a snippet, press Tab. The left indent in the selected code increases to N spaces. N is a number pre-defined by you.
157 -* Wrap Lines - The optional feature. If ON, the editor will wrap long lines. Otherwise, it will create a horizontal scroll.
158 -* Line Numbers - The optional feature. If ON, all lines in the editor will be numbered.
159 -* Auto Close Brackets - The optional feature. If ON, the editor will automatically close opened quotes or brackets. Sometimes, it speeds up coding.
160 -* Highlight Selection Matches - The optional feature. If ON, it searches for matches for the selected variable/function name. Highlight matches with green. Improves readability.
161 -#### Geolocation ####
162 -IP geolocation database (Webnet77 or MaxMind) - Select IP geolocation database
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
163 159
164 -### Use this plugin with care! ###
165 -ATTENTION! Check your php scripts before inserting on your site. If you don't understand how the php script you are using works, try to avoid using it. Using unverified or outdated php scripts can damage the security of your site! Using the plugin on multisites can be dangerous as it will allow all administrators to insert php, js code. If you cannot control the work of administrators, we recommend that you do not use this plugin for security reasons. We are constantly working to improve the security of the plugin, but unfortunately we cannot check the code scripts you use that may violate the security of your site!
160 +### Code Revisions and Rollback [PRO] ###
166 161
167 -### History, Developers, Credits ###
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.
168 163
169 -If you are a long-term user, you may be confused about the new plugin update. You’ve been using an old plugin – Insert php 1.3.0, and now got an extended product – Woody Code Snippets. Insert php was the first plugin version to work with PHP code. It was created by Will Bontrager Software, LLC. In 2018, the Webcraftic studio started to actively develop the plugin. We’ve created a roadmap and released several powerful updates that help you to use PHP code more comfortable and secure. Now plugin supports not only PHP but other snippet types as well. We’ve decided to rename the plugin as Woody Code Snippets. This name is more suitable for new and powerful plugin features.
164 +This adds an extra layer of safety when working with custom code.
170 165
171 -More information about the Insert PHP plugin can be found here:
172 -http://www.willmaster.com/software/WPplugins/go/iphphome_iphplugin
166 +### Cloud Templates and Sync [PRO] ###
173 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 +
174 210 == Installation ==
175 211
176 212 1. Upload the plugin files to the `/wp-content/plugins/plugin-name` directory, or install the plugin through the WordPress plugins screen directly.
177 213 2. Activate the plugin through the 'Plugins' screen in WordPress
@@ -185,9 +221,9 @@
185 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.
186 222
187 223 = The snippet code executed with an error and I cannot change it, what should I do? =
188 224
189 -Do not despair! Even an experienced person can make mistakes. We created a secure mode for this case. Go into it and your snippets code will not be executed.
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.
190 226
191 227 1. Go to the safe mode by this link: http://your-site-name.dev/wp-admin/?wbcr-php-snippets-safe-mode
192 228 2. Edit the snippet in which you made a mistake;
193 229 3. Leave safe mode by clicking the link: http://your-site-name.dev/wp-admin/?wbcr-php-snippets-disable-safe-mode
@@ -207,22 +243,11 @@
207 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.
208 244 We recommend you to move all your code from the post editor to snippets.
209 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.
210 246
211 -= How long are you planning to support the old version 1.3.0? =
212 -
213 -60% users have already downloaded 2.x.x version. We are trying to reach the number of 80%. The deadline for support is scheduled for March 1, 2019.
214 -You can download the old plugin version from [here](https://downloads.wordpress.org/plugin/insert-php.1.3.zip).
215 -
216 -= I don’t like the new plugin version. How can I roll back to 1.3.0 and don’t get updates? =
217 -
218 -First of all, please, take some time to actually go through the new version. Usually, it takes a week to see how useful this version may be for you. If you’ve faced any problems or found some bugs, feel free to contact us at our [support forum](http://forum.webcraftic.com).
219 -You can always download the old version (1.3.0) from [here](https://downloads.wordpress.org/plugin/insert-php.1.3.zip).
220 -To avoid getting updates, open the PHP file wp-content/plugins/insert-php/insert_php.php and change the plugin version to 9.9.9.
221 -
222 247 = Is there any plugin documentation? =
223 248
224 -You can find the detailed documentation in [here](https://woodysnippet.com/getting-started-with-woody-ad-snippets/).
249 +You can find the detailed documentation in [here](https://docs.themeisle.com/collection/2410-woody-code-snippets).
225 250
226 251 = Is plugin compatible with GDPR? =
227 252
228 253 Yes, the plugin is fully compatible with GDPR.
@@ -241,24 +266,138 @@
241 266 No, the snippets are stored in the WordPress database and are independent of the theme and unaffected by WordPress upgrades.
242 267
243 268 = Does plugin work with multisite? =
244 269
245 -The plugin doesn’t support multi-sites.
246 -We will definitely add multisite support in the future. You can speed up this process by leaving a request on our [support forum](http://forum.webcraftic.com).
270 +The plugin doesn’t support multi-sites setup.
247 271
248 272 == Screenshots ==
249 273
250 -1. Snippets list
251 -2. Edit php snippet
252 -3. Code revisions
253 -4. Setting up automatic placement of snippets
254 -5. Setting conditional logic to display a snippet
255 -6. Creating a Snippet for Gutenberg Editor
256 -7. Adding a snippet shortcode to a text widget
257 -7. Custom shortcode name
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
258 281
259 282 == Changelog ==
260 283
284 +##### Version 2.7.9 (2026-10-05)
285 +
286 +- Fixed a fatal error when activating legacy Premium versions.
287 +- Fixed repeated PHP and Universal shortcodes breaking pages after function declarations.
288 +- Fixed snippet previews and inactive saves running code before activation.
289 +- Updated dependencies
290 +
291 +
292 +
293 +
294 +##### Version 2.7.8 (2026-09-29)
295 +
296 +- Updated dependencies
297 +- Added AI agent support: let AI assistants read and change your Woody code snippets and settings.
298 +
299 +
300 +
301 +
302 +##### Version 2.7.7 (2026-09-14)
303 +
304 +- Improved the plugins reliability with expanded automated testing
305 +- Fixed fatal PHP error details missing from the Safe Mode screen for administrators.
306 +- Fixed PHP shortcodes crashing pages when a stored snippet has invalid PHP.
307 +- Improved the Woody Snippets block setup when no snippets are available.
308 +- Fixed PHP shortcodes that stopped page indexing after a snippet error.
309 +- Fixed Safe Mode to stop all shortcode snippets for administrators.
310 +- Fixed PHP shortcodes that could crash pages after a snippet runtime error.
311 +- Fixed snippet saves that crashed when a function name was already in use.
312 +- Fixed frontend pages stopping when a PHP shortcode snippet has a runtime error.
313 +
314 +
315 +
316 +
317 +##### Version 2.7.6 (2026-07-22)
318 +
319 +- Fixed a PHP warning that could appear in server logs when the plugin checked incoming REST API requests.
320 +- Fixed an issue where a snippet error message could be shown to site visitors instead of only to administrators.
321 +- Updated dependencies
322 +
323 +
324 +
325 +
326 +##### Version 2.7.5 (2026-05-15)
327 +
328 +- Improved compatibility with PHP 8.1
329 +- Added display of actual PHP error message on the snippet error splash page
330 +
331 +
332 +
333 +
334 +##### Version 2.7.4 (2026-04-27)
335 +
336 +- Fixed error caused by dependencies
337 +
338 +
339 +
340 +
341 +##### Version 2.7.3 (2026-04-23)
342 +
343 +- Added an option to disable the Active Snippets notice from the menu
344 +- Fixed issue with tags area is not visible unless you enable/disable it from Screen Options
345 +- Fixed issue with text snippets paragraph formatting when rendered via shortcode
346 +- Fixed issue where Tags and Custom shortcode names are not imported when importing snippets
347 +- Enhanced security
348 +- Updated dependencies
349 +
350 +
351 +
352 +
353 +##### Version 2.7.2 (2026-01-27)
354 +
355 +- This release focuses on improving the security and robustness of snippet type handling in the codebase.
356 +
357 +
358 +
359 +
360 +##### Version 2.7.1 (2026-01-21)
361 +
362 +- Added a compatibility check for the Woody Pro version during activation to prevent fatal errors.
363 +
364 +#### Version 2.7.0 (2026-01-19)
365 +
366 +### New Features
367 +
368 +- Export and clone functionality now available in free version
369 +- Active snippets menu item for better snippet management
370 +- New feature to receive emails during fatal error caused by snippets
371 +- New Improved Plugin UI.
372 +- Non-premium snippets can now be accessed via API
373 +- Use IPHub as Geolocation Tool. [PRO]
374 +
375 +### Enhancements
376 +
377 +- Improved PHP code validation before saving
378 +- Better Location terminology for improved clarity
379 +- Added save hotkey support
380 +- Enhanced snippet labels in library for easier identification
381 +- Improved Add Snippet button UI for better user experience
382 +- Updated license management system (SDK-based approach)
383 +
384 +### Bug Fixes
385 +
386 +- Fixed translation and deprecation errors
387 +- Fixed safe mode functionality
388 +- Fixed location number field not appearing with certain conditions
389 +- Fixed inactive snippets not being exported
390 +- Fixed RTL (right-to-left) issues in toggle controls
391 +- Fixed sync modal not appearing for advert type snippets
392 +- Fixed license message display issues
393 +- Fixed critical error with export logs tool permission checking
394 +- Fixed trashing posts from removing associated metadata
395 +
396 +##### Version 2.6.1 (2025-10-21)
397 +
398 +- fix error with missing asset files
399 +
261 400 #### Version 2.6.0 (2025-10-20)
262 401
263 402 Woody Snippets plugin has been acquired by Themeisle 🎉
264 403 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.
@@ -263,9 +402,8 @@
263 402 Woody Snippets plugin has been acquired by Themeisle 🎉
264 403 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.
265 404
266 405 Your existing setup will continue to work as usual — no action is required on your part.
267 -
268 406
269 407
270 408 = 2.5.1 =
271 409 * Fixed: [insert_php] shortcodes are no longer supported due to the security risk to your site.