Tired of editing theme files to add custom scripts or styles? WP Coder lets you insert custom HTML, CSS, JavaScript, and PHP snippets directly from your dashboard — no coding in theme files required. Gain full control and flexibility over your site. Documentation | WP Coder Pro Why WP Coder? Header
PricingFree downloadThe WordPress.org download is free. Pro versions, add-ons or external services may cost extra.
CompatibilityRequires WordPress 5.3 and PHP 7.4.
SourceWordPress plugins · Nov 19, 2026
01 / Source details
Aboutthistool.
Tired of editing theme files to add custom scripts or styles? WP Coder lets you insert custom HTML, CSS, JavaScript, and PHP snippets directly from your dashboard — no coding in theme files required. Gain full control and flexibility over your site.
Documentation | WP Coder Pro
Why WP Coder?
Header & Footer Scripts: Add Google Analytics, Tag Manager, verification meta tags or any script to every page — in <head> , right after <body> , before or after the post content, or before </body> .
Shortcodes & a Gutenberg Block: Place a snippet anywhere with [wp_code id="X"] (or by its title, [wp_code title="…"] ) or the WP Coder block, with a live preview in the editor.
Reusable Snippets with Attributes: Define fields once — text, textarea, number, range, URL, image, color, date — and fill them per shortcode or block. Use them in your code as {{name}} .
Images Done Right: An image attribute gives you its URL, alt text, size, srcset and a ready <img> tag with WordPress lazy loading and fetch priority applied.
82 Ready-made Snippets: Turn on common tweaks for security, performance, the editor, media, comments and login with one switch — and find any of them with instant search.
Safe by Design: Only administrators can add code. A PHP error in a snippet is caught and logged instead of breaking the page, a fatal one switches that snippet off automatically, and Safe Mode ( ?wpcoder-safe-mode=1 , for administrators) gets you back into the admin if Global PHP or an included PHP snippet ever locks you out.
Ideal For
Developers: Test snippets, hooks and PHP quickly, with a code editor that feels like home.
Marketers: Insert tracking pixels, analytics and ad scripts site-wide in a minute.
Designers & Bloggers: Build reusable blocks, customize layouts and styles.
Key Features
Tabbed editor for HTML, CSS, JS and PHP with syntax highlighting, linting, autocomplete ( Ctrl+Space ), auto-closing tags and brackets, code folding, find & replace, go to line, full screen and Ctrl/Cmd+S to save — and a warning before you leave with unsaved code.
Live Preview: See your HTML and CSS rendered as you type, right next to the editor. Load a CSS file for the preview only, if you need one.
Smart PHP handling: run in admin, front end, everywhere, or only where the snippet is placed.
PHP variables in HTML: set $year in the PHP tab and print it in the HTML as {{year}} (with Include PHP on “Run where inserted”, the default).
CSS and JS output inline or as a separate file, with defer / async and an optional jQuery dependency.
Include external libraries (Google Fonts, CDN scripts & styles) with async / defer .
Minify HTML, CSS and JS, or obfuscate JavaScript.
Test Mode: Preview snippets as an administrator before visitors see them.
Organize: Several tags per snippet, pin the ones you use most, add a private note and a reference link, duplicate a snippet, search by title or ID, filter by tag and bulk-edit the list.
Import/Export snippets (all, selected or by tag) and your Snippets & Tools settings between sites.
Customizable Interface: Hide unused editor tabs and add NAV comments to jump around long code.
Lightweight — pages that do not use a snippet get no extra CSS or JavaScript.
Included Tools
Integrations
Google Tag Manager (GTM) integration with user role controls.
Google Analytics, Facebook Pixel, and Pinterest Pixel integration.
Google AdSense integration with the option to disable ads for selected user roles.
Content & Templates
Markdown Editor – Disables Gutenberg and TinyMCE, replacing them with a Markdown editor powered by CodeMirror.
Developer Tools
Debug Log – Turn PHP error logging to wp-content/debug.log on or off, read and clear the log, with an Admin Bar link while it has entries.
Show Page Debug Info – A Dev Info menu in the Admin Bar: template and its path, query type, database queries and the slowest ones, memory and render time, loaded scripts and styles, body classes, WordPress and server environment. Admins only.
Theme Switcher – Quickly switch between installed themes directly from the admin bar.
Included Snippets (82)
Editor & Content
Remove Gutenberg Block CSS
Add Page Slug to Body Class
Disable Widget Blocks
Enable Shortcode Execution in Text Widgets
Enable Excerpt for Pages
Open External Links in New Tab
Disable Block Patterns
Unsynced Patterns by Default
Change “Read More” Text for Excerpts
Custom Excerpt Length by Post Type
Change Autosave Interval
Custom Editor Styles
Disable Gutenberg Editor
Admin Interface
Disable “Screen Options” Tab
Disable Welcome Panel
Duplicate Posts & Pages
Enable Search by ID
Show ID Column
Show Featured Image Column
Show Last Modified Column
Collapse Admin Notices
Disable The WP Admin Bar
Login & Users
Disable Login Page Language Switcher
Disable Login by Email
Disable Admin Password Reset Emails
Change Logo on Login Page
Change URL for Logo on Login Page
Change Redirect After Login
Change Redirect After Logout
Change “Remember Me” Duration
Media & Embeds
Allow SVG Uploads
Disable Big Image Scaling
Disable Unused Image Sizes
Auto Alt Text from Filename
Default Image Link to None
Enable Lowercase Filenames for Uploads
Add Alt Text to Avatars
Add Featured Image to RSS Feeds
Disable Embeds
Limit Maximum Upload Size
Change oEmbed Max Width and Height
Comments & Feedback
Disable Comments
Remove Website URL Field
Disable Self Pingbacks
Disable Trackbacks & Pingbacks
Disable HTML in Comments
Limit Comment Length
Security
Disable XML-RPC
Disable Theme & Plugin File Editing
Disable Plugin & Theme Installation
Disable Author Archives
Email on Administrator Login
Disable User Enumeration
Add Security Headers
Disable Application Passwords
Hide Login Error Details
Remove WordPress Version Number
Limit Login Attempts
Disable WordPress REST API
Performance
Load Block CSS Only When Used
Remove Global Styles & SVG Filters
Disable Gravatar
Remove Query Strings from Assets
Disable Heartbeat on Front End
Remove jQuery Migrate
Disable Dashicons on Front End
Disable Emojis
Remove Shortlink Tag
Remove Windows Live Writer Tag
Remove RSD Link & X-Pingback
Resource Hints
Image Lazy Loading (force or disable)
Core & System
Disable Automatic Updates
Disable Automatic Update Emails
Disable Admin Email Verification
Disable Automatic Trash Emptying
Disable Search
Disable RSS Feeds
Disable Attachment Pages
Redirect 404 to Homepage
Custom Mail From Name & Address
Limit Post Revisions
WP Coder Pro
Everything above stays free. WP Coder Pro adds:
Conditions: show a snippet only on chosen posts, pages, post types and archives, for chosen user roles, devices, browsers and languages, or on a schedule.
More attribute types: rich text, toggle, select, repeater, gradient, post and term pickers, icons and an image with preload, with labels, help text and live preview in the block.
QuickCode and Loop Logic: live site data such as {{post.title}} or {{user.name}} , and <If> / <Loop> blocks in snippet HTML.
Snippet management: revision history, Search & Replace across all snippets, filters by status and mode, and an edit lock.
Faster pages: combined CSS/JS files, jQuery only when needed, dequeue unused files.
More tools: WP Coder Debug Bar, Test Users, Plugin Switcher, Cron viewer, page templates, menus and sidebars, Maintenance Mode, Global Variables, login page CSS & JS, breadcrumbs, icon library and an AI Assistant.
WP Coder simplifies your WordPress development workflow and makes customization safe, fast, and flexible!
Quick Start Video
Plugin Demo
Support
Need help? Ask questions and get quick answers in our support center .
See it in action
Screenshots & previews.
All Codes – tags, pinned snippets, shortcodes and status at a glance.Conditions – show a snippet by shortcode or block, or everywhere, and choose its Location on the page.Attributes – define fields once and use them in your code as {{name}}.WP Coder block – attribute fields and live preview in the block editor.CSS tab – syntax highlighting, inline or file output and minification.PHP tab – run PHP where the snippet is placed, in admin, on the front end or everywhere.Snippets – 82 ready-made tweaks in 8 groups with instant search.Tools – Google Analytics, Tag Manager, pixels and AdSense integrations.Global PHP – site-wide PHP in one place.Import / Export – move snippets between sites.
02 / Source details
Gettingstarted.
📌 Option 1: Install via WordPress Admin
01Go to Plugins → Add New in your WordPress admin panel.
02Search for “WP Coder” and click Install Now .
03Click Activate after installation.
📌 Option 2: Install Manually
04Download the WP Coder plugin ZIP file from WordPress.org .
05In WordPress admin, go to Plugins → Add New → Upload Plugin .
06Click Choose File , select the downloaded ZIP file, then click Install Now .
07After installation, click Activate .
📌 Option 3: Install via FTP
08Download and unzip the WP Coder plugin ZIP file.
09Upload the extracted wp-coder folder to /wp-content/plugins/ via FTP.
10Go to Plugins in WordPress admin and click Activate .
🚀 Getting Started
11Open WP Coder in your WordPress admin menu.
12Click Add New to create your first snippet.
13Add your HTML, CSS, JavaScript or PHP.
14Choose how it appears: copy the shortcode, insert the WP Coder block, or set Display: Everywhere on the Conditions tab.
15Click Save (or press Ctrl/Cmd+S ).
03 / Source details
Frequently asked questions.
Does WP Coder support Network activation?
Currently, WP Coder doesn’t support network-wide activation. If you’re using WordPress Multisite, activate the plugin individually on each site within your network.
Where can I find detailed documentation?
Visit our comprehensive official documentation for detailed guides and step-by-step instructions.
How can I use shortcode content in HTML code?
If you include content within the shortcode like [wp_code id="1"]Some Text[/wp_code] , you can insert this content into your HTML snippet using the variable {{$shortcode_content}} .
Can I use PHP variables in the HTML?
Yes. Keep Include PHP on Run where inserted (the default), set a variable in the PHP tab — for example $year = date( 'Y' ); — and print it in the HTML tab as {{year}} . Text and numbers are printed; an array or object is left as written. PHP set to run in the admin, on the front end or everywhere runs once on init instead, and its variables do not reach the HTML.
Can I use shortcodes from other plugins within WP Coder snippets?
Absolutely! WP Coder allows you to embed shortcodes from any plugin within your HTML snippet content. You can also use WP Coder’s own shortcodes, offering enhanced flexibility for customization.
How do I add Google Analytics (or any script) to every page?
Create a snippet, paste the code into the HTML tab and on the Conditions tab set Display to Everywhere and choose the Location : In <head> for analytics, Tag Manager and verification meta tags, or Before </body> for chat widgets and other scripts. The Integrations tab under Tools also has ready fields for Google Analytics, Tag Manager, Facebook and Pinterest pixels and AdSense.
My site broke after adding PHP code. What can I do?
A PHP error inside a snippet is caught and logged, so the page keeps working. An error no code can catch — a time limit, memory exhausted, “Cannot redeclare” — switches that snippet (or Global PHP) off automatically, so the next page loads; an admin notice links to it. If Global PHP or a snippet whose PHP runs in the admin still locks you out, add ?wpcoder-safe-mode=1 to the admin URL: that PHP is skipped while you are in Safe Mode, so you can open the snippet and fix or deactivate it. Safe Mode works for administrators only — signed out, the login screen keeps the parameter for after you sign in. If even the login screen fails, add define( 'WPCODER_SAFE_MODE', true ); to wp-config.php, and remove it once the snippet is fixed.
My PHP code stopped working after updating to 5.0. Why?
Since 5.0, PHP code is checked before it runs. A snippet’s PHP, an included PHP snippet or Global PHP that calls eval() , exec() , system() , shell_exec() , passthru() , popen() , proc_open() , pcntl_exec() , assert() , create_function() or base64_decode() , or uses backticks, is not run — its HTML still shows. The blocked functions are written to the PHP error log (turn logging on and read it under WP Coder → Debug Log ); for Global PHP and included snippets an admin notice names them too. Rewrite the code without these functions and it runs again.
Where does WP Coder store snippet files?
Snippets are saved in the database. Their CSS, JavaScript and PHP are also written as files to wp-content/uploads/wp-coder/ , so that folder must be writable. If the folder is cleared or lost in a migration, the files are recreated from the database automatically.
Does WP Coder work with Elementor, Divi and other page builders?
Yes. The [wp_code id="X"] shortcode works wherever shortcodes are processed — the Shortcode, Text or HTML element of a page builder, the classic editor and widgets. In the block editor, use the WP Coder block.
Does WP Coder connect to external services?
No. The plugin itself makes no external requests and collects no data; the Support page sends your message by email only when you submit it. Third-party code — Google Analytics, Tag Manager, pixels, AdSense or a CDN library you include — is loaded on your site only when you add or enable it.
How do attributes work?
On the Attributes tab, add a name (for example button_text ), a type and a default value. Use it in your code as {{button_text}} , then set a value per shortcode — [wp_code id="1" button_text="Buy now"] — or in the block’s sidebar, where each attribute gets a matching field.
How do tags work?
Add one or more tags to a snippet, separated by commas. In the list each tag is a filter link, and you can export all snippets with a given tag. Pin the snippets you use most to keep them at the top.
What are the Link and Note fields for?
Both are for the people who edit snippets and are never shown on the site. Put a reference link in the Link field — the page where the snippet is used, its documentation, a design or a task — and open it with one click. A note says what the snippet is for; its first line is shown under the title in All Codes.
What is the difference between WP Coder and WP Coder Pro?
WP Coder is complete for adding code by shortcode, block or site-wide. WP Coder Pro adds conditions (show a snippet only on chosen pages, to chosen users, devices or on a schedule), more attribute types such as repeaters and rich text, QuickCode, revisions, Search & Replace and more tools.
Will my snippets survive the switch to Pro?
Yes. Both versions use the same data, so your snippets, settings, tags and attributes carry over when you activate WP Coder Pro — and back again.
FinderPress Media Auditor helps site administrators scan for broken images, missing Media Library files, unreachable media URLs, and other media issues across WordPress content. Use it to audit images, video, audio, PDFs, featured images, and attachment files without sending scan data to an external
The Accepted Payment Methods plugin is a straightforward, lightweight solution that enhances your website by displaying visually appealing icons of the payment methods you accept. This plugin is ideal for a variety of websites, including e-commerce platforms, service-oriented websites, and informati