WP Coder Pro 6.0 is the biggest update of the plugin so far. This page lists the highlights and — most important for existing sites — what may behave differently after updating from 5.x.
WP Coder (free): version 5.0 of the free plugin brought over many of these changes — the editor features, the 82 snippets, Display Everywhere with Location, attributes, several tags, pins and notes. Its changes are listed in the changelog on WordPress.org.
Highlights#
Snippets and blocks#
- Location for automatically displayed HTML — print a snippet in
<head>, right after<body>opens, before or after the post content, or before</body>. Conditions → Location - New field types: Post / Page, Taxonomy Term, Toggle, SVG File and Icon — plus Label and Help text for every field and dialogs for Select options and Range limits. Attributes & Block Fields
- Hide from visitors — a per-block switch: administrators still see the block on the site, visitors get nothing (no HTML, CSS or JS). The WP Coder Snippet block
- Block Field Picker — click any part of the block preview to jump to the field that fills it. Developer Tools
Icons#
- Icons page — a library of named SVG icons served as one cached sprite file,
icons.svg. Use them as{{svg.name}}or let editors pick them in a block. Icons
Editor and list#
- One Save bar at the bottom with an “Unsaved changes” status; Customize tabs to hide empty tabs.
- Code editor: folding, search & replace, go to line, select next occurrence, full screen (F11).
- All Codes: Live / Admins only / Off views with counts, an on/off switch per row with Undo, pinning, several tags per snippet, a private note per snippet. All Codes
- Edit lock — a warning when someone else is editing the same snippet.
- Find on page in Scripts & Styles — see which theme and plugin files a page loads and remove them correctly. Scripts & Styles
Tools and Snippets#
- Blank Template — a “WP Coder — Blank” page template without the theme’s header and footer. Content & Templates
- Security tab in Snippets and new snippets: Disable Author Archives, Disable Plugin & Theme Installation, Email on Administrator Login, Disable Gravatar, Load Block CSS Only When Used and more. Security snippets
- Settings export / import — move which Snippets and Tools are on to another site. Import / Export
- Debug Log redesigned — newest first, filters, download, and a list of errors caught in snippets. Debug Log
Security#
- WP Coder Pro pages and save handlers are restricted to administrators who may post unfiltered HTML. Editors can no longer save PHP on single-site installs.
- The PHP tab is scanned for forbidden functions wherever the snippet is shown.
- Block and Contributor shortcode values are escaped by field type.
- Safe Mode URL works for plugin administrators only; locked out, use
WPCODER_SAFE_MODEinwp-config.php. PHP Errors & Safe Mode
Upgrading from 5.x#
The update runs by itself on the first page load (database version 4.0). What an existing site may notice:
- jQuery — snippets that never had “Disable jQuery” ticked move to Auto: jQuery is loaded only when the code writes
jQuery,$(or$.. If your code relies on jQuery without writing it (for example through a jQuery plugin of your theme), set the JS tab to Always load. - Renamed snippet settings carry over automatically: Disable XML-RPC, Change oEmbed Size, Remove Website URL Field, Pinterest tracking.
- Schedule rows with only a weekday, and date ranges with an empty end, now show the snippet (they used to hide it).
- HTML Minify keeps one space where there was a line break between tags — a few bytes larger, but it renders as written.
- Location defaults to “Before
</body>” — where auto-displayed HTML always went. - Block values are escaped for every author; a
javascript:link in a block URL field is removed. - Disabled RSS feeds answer 410 Gone instead of 500.
- JavaScript of new snippets is minified, not obfuscated. Snippets set to Obfuscate keep it.
- A PHP tab with a forbidden function (
exec(),base64_decode()…) no longer runs when the snippet is shown. Look under Debug Log → Errors caught in snippets. - A PHP tab set to run in admin / front end / everywhere no longer runs a second time where the snippet is shown, so its variables don’t reach the HTML. Code whose HTML reads them belongs on Run where inserted.
- Test mode now also holds back such a PHP tab: it runs for administrators only.
- Safe Mode (
?wpcoder-safe-mode=1) needs you signed in as an administrator. - AI Assistant is off by default. To keep using it, add
define( 'WPCODER_ENABLE_AI', true );towp-config.php; its settings are kept. - WP Coder (free) and WP Coder Pro can’t be active together — activating one deactivates the other.