WordPress plugin
WP Coder Pro
WP Coder Pro brings a tabbed CodeMirror editor with syntax highlighting for HTML, CSS, JavaScript, and PHP into the WordPress dashboard. Create and manage snippets without editing theme files. Developers can test hooks or debug, marketers can add tracking code, and designers or bloggers can adjust layouts and site interactions.
Write snippets and select where they execute
WP Coder Pro brings a tabbed CodeMirror editor with syntax highlighting for HTML, CSS, JavaScript, and PHP into the WordPress dashboard. Create and manage snippets without editing theme files. Developers can test hooks or debug, marketers can add tracking code, and designers or bloggers can adjust layouts and site interactions.
Place snippets with the Gutenberg block, which works with custom attributes and live preview, or use the shortcode [wp_code id="X"]. HTML and CSS can be previewed in the backend and Gutenberg without a reload. PHP snippets can run in the admin area, on the front end, everywhere, or only where inserted. External libraries, including Google Fonts and CDN scripts and styles, can also be included.
Preview and prepare front-end code
Test Mode lets you preview snippets before they go live. For front-end code, the plugin includes CSS and JavaScript minification, JavaScript obfuscation with Dean Edwards’ Packer, and options to load scripts with async or defer. Import and export utilities move snippets and options between websites.
Integrations and editing tools
Integrations include Google Tag Manager with visitor-role controls, Google Analytics, Facebook Pixel, Pinterest Pixel, and Google AdSense. AdSense can be disabled for selected user roles.
The Markdown Editor uses CodeMirror and replaces Gutenberg and TinyMCE while it is in use. You can conceal unused editor tabs, and NAV comments add inline navigation markers to help move through code.
Dashboard utilities
- Enable, disable, or clear the WordPress debug log.
- Show request details in the Admin Bar, including the template, query type, object, and body classes. This tool is available to administrators.
- Switch between installed themes from the Admin Bar.
- Use included snippets for editor and content changes, login and user access, media, embeds, and core functionality. Examples include disabling Gutenberg, changing login redirects, enabling SVG uploads, setting default avatar ALT text, controlling lazy loading, and disabling embeds.
Typical workflow
Create a snippet in the dashboard, choose its code type, add the content, and set its execution or insertion options. Use Test Mode to preview it when appropriate, then place it with the Gutenberg block or shortcode. As the project changes, adjust the editor settings or execution options, use integrations, or import and export snippets and settings between sites.