WP Coder – Insert & Manage Code Snippets changelog
By Wow-Company, on WordPress.org since 2018. 10,000+ active installs.
42 tagged releases, newest first. Dates are when each release was tagged in SVN. Notes come from the plugin's readme, which may not list every release.
-
- Added: Safe Mode switches off a snippet – or Global PHP – whose PHP stops the site with an error no code can catch (time limit, memory exhausted, “Cannot redeclare”), so the next page loads, and leaves an admin notice linking to it. Until now every page kept failing until Safe Mode was set by hand.
- Added: Tracking Code Manager – switch off Google Analytics and the Facebook and Pinterest pixels for chosen user roles, as already possible for Tag Manager and AdSense.
- Fixed: PHP code set to “Run only in admin area”, “Run only on front-end” or “Run everywhere” also ran where the snippet’s shortcode or block was placed – a second time on that page, so a function or class it declared stopped the page with “Cannot redeclare”, and admin-only code ran on the front end. It now runs only where Include PHP says; “Run where inserted” works as before.
- Fixed: Test Mode also holds back PHP code set to “Run only in admin area”, “Run only on front-end” or “Run everywhere”: it ran for every visitor, and now runs for administrators only, like the rest of the snippet.
- Fixed: The tooltip of the Status column in All Codes, and the “Delete” bulk action label.
-
- Fixed: Security – the alt text of a media library image is now escaped in {{name_alt}} (and {{name_srcset}}, {{name_sizes}}) of an Image attribute. A user who can upload media (Author and above) could set an image’s Alt Text so that it broke out of alt=”{{name_alt}}” in an administrator’s snippet and ran a script for every visitor of the page. An image URL can no longer close a single-quoted attribute either. Reported through Wordfence.
- Fixed: Security – “Duplicate Posts & Pages” copies only posts the user can edit, and each Duplicate link works for its own post only. A Contributor could copy any post – someone else’s private post or draft, with its password and custom fields – into a draft of their own.
- Fixed: Security – “Open External Links in New Tab” could turn a link written by a Contributor into a script on the page (WordPress before 7.0 keeps the quotes that made it possible). Links are now edited through WordPress’s HTML API; on WordPress older than 6.2 they are left as written.
- Fixed: Security – values from an author who may not publish raw HTML (e.g. a Contributor) can no longer close the HTML attribute of the snippet they are placed in: shortcode and block attributes, HTML and Rich text ones included, and the content between [wp_code]…[/wp_code] ({{$shortcode_content}}). Inside a tag their quotes are encoded, and outside quotes their spaces too; the page shows the same text. Values from administrators are written as before.
- Fixed: Security – “Allow SVG Uploads” also cleans a file sent to the REST API as the raw request body, and removes links under any xlink prefix and instructions.
-
- Added: Snippets – the full set from WP Coder Pro, now 82 snippets in 8 groups, with a new Security group and instant search across all of them. Your existing snippet settings are kept; the few renamed options are migrated automatically.
- Added: Code editor – code folding, highlighting of matching words, Ctrl/Cmd+S to save, find & replace, select next occurrence, go to line, full screen (F11), a shortcuts reference, and a warning before leaving with unsaved code.
- Added: Display Everywhere – a snippet can now be added to every page automatically, without a shortcode, at the Location you choose: in , after opens, before or after the post content, or before . Ideal for analytics, verification meta tags and site-wide scripts. Existing snippets stay shortcode-only until you change this on the Conditions tab.
- Added: Attributes – define values each shortcode or block fills in, used in the code as {{name}}. Types: text, textarea, number, range, URL, image, color and date; the block shows a matching field for each. An image attribute also gives {{name_url}}, {{name_alt}}, {{name_srcset}}, {{name_html}} and more. Attributes from WP Coder Pro keep working.
- Added: Several tags per snippet – separate them with a comma; each tag in the list is its own filter link, and export by tag includes every snippet carrying it. Existing tags are kept.
- Added: Pin snippets – keep the ones you return to at the top of the list, with a pin icon on each row and Pin/Unpin bulk actions.
And 27 more notes.
-
- Fixed: Security – the WP Coder admin pages and all save handlers (Global PHP, snippets with PHP code, tools, import/export, debug log) are now restricted to administrators (manage_options together with unfiltered_html). Previously, users with the Editor role on single-site installs could save and execute arbitrary PHP. Thanks to Ayush Srivastava for responsibly reporting this issue.
-
- Fixed: Security – restricted the Gutenberg block REST endpoints (snippet preview and attributes) to logged-in users with the edit_posts capability, preventing unauthenticated access.
-
- Added: Lazy load option for images
- Added: Google Tag Manager integration in Tools & Integrations
- Fixed: Snippet Open External Links in New Tab now correctly identifies internal links
-
- Added: Gutenberg block – insert and manage WP Coder snippets directly inside the WordPress block editor with live preview.
-
- Fixed: includes css to Live preview
-
- Added: Markdown Editor in Tools for writing with Markdown syntax.
- Added: Debug Tools section in Tools, including: Show Page Debug Info
- Theme Switcher
- Plugin Switcher
- Improved: Tools page layout – tools are now grouped into sections for easier navigation.
-
- Added: Debug Log page in WP Coder admin menu with options to enable/disable logging and clear log.
- Added: Admin bar indicator with link to Debug Log when entries are present.
-
- Added: Export snippets by tags
- Added: Export selected snippets
- Added: Option to use CSS files only in Live Preview without loading them on the site
-
- Added: duplicate button for each item
- Improved: Live Preview block behavior and rendering
-
- Improved: Reorganized method order in DBManager class for better readability and maintenance
- Improved: Minor SQL formatting for consistency
- Cleaned: Minor code style improvements according to WordPress Coding Standards (WPCS)
-
- Improved: Added matchBrackets: true option for the JavaScript editor to highlight matching brackets when editing code.
-
- Improved: Refreshed interface for better user experience.
- Added: “Open External Links in New Tab” snippet.
- Added: “Redirect 404 to Homepage” snippet.
- Added: “Limit Comment Length” snippet.
- Added: “Disable HTML in Comments” snippet.
- Added: “Disable Trackbacks & Pingbacks” snippet.
And 1 more note.
-
- Fixed: Security issue in escaping within list files.
-
- Added: Custom locations for PHP snippet inclusion.
- Added: Option to hide tabs in settings.
- Fixed: Admin style compatibility for Safari browser.
-
- Fixed: Minor admin style improvements.
- Fixed: Various minor bugs.
-
- Changed: Adjusted user permissions to use the plugin.
-
- Added: “Tracking Code Manager” tool for easy integration of analytics pixels.
- Added: “Google AdSense” integration tool.
- Added: User roles support for “Disable WP Admin Bar” snippet.
- Improved: Updated back-link functionality.
-
- Added: Pre-set popular snippets page.
-
- Added: Button to insert images in HTML snippets.
- Added: HTML Minification tool.
- Improved: Enhanced CSS Minification tool.
-
- Fixed: Minor database issue.
-
- Added: “Add New” and “All Codes” buttons in editor.
- Fixed: Improved admin styling.
-
- Fixed: Database save issue.
-
- Added: Global PHP snippet feature.
- Added: Content handling inside shortcodes.
- Added: Copy shortcode button.
- Improved: More flexible file inclusion management.
- Changed: Shortcode updated to [wp_code].
-
- Fixed: Minor update bug and admin notifications.
-
- Fixed: Updated datatable handling.
-
- Fixed: Inline scripts/styles management.
-
- Fixed: Execution order for scripts and styles.
-
- Fixed: Updating and saving snippets.
- Fixed: Admin capability adjustments.
-
- Added: Test Mode and snippet Status.
- Added: Tagging and Link options.
- Added: Inline and Minified options for CSS.
- Added: JavaScript optimization options.
- Added: Export/Import feature.
- Improved: Updated database and admin interface.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.