Blocks your clients can edit
Turn a snippet into a Gutenberg block with real fields: repeaters for lists and cards, post and term pickers, toggles, selects, rich text, images and icons — each with its own label, help text and a live preview.
WP Coder Pro keeps your HTML, CSS, JavaScript and PHP in one place and turns any snippet into a Gutenberg block with fields your clients can edit. No theme edits, no build tools.
<article class="plan">
<If field="featured" value="1">
<b class="badge">Most popular</b>
</If>
<h3>{{$plan}}</h3>
<p class="price">{{$price}}</p>
<ul><Loop field="features">
<li>{{loop.text}}</li>
</Loop></ul>
<a href="{{$link}}">Buy for {{$plan}}</a>
</article>
.plan {
padding: 2rem;
border: 1px solid #dde3ec;
}
.plan:has(.badge) {
border: 2px solid #1f6feb;
}
.plan:has(.badge) a {
background: #0b2545;
color: #fff;
}
// Loads only on pages with this block
const links = document.querySelectorAll(
'.plan a'
);
links.forEach((link) => {
link.addEventListener('click', () => {
gtag('event', 'begin_checkout');
});
});
// Runs where the block is placed.
// Fields are variables: $plan, $link…
// What you set here reaches the HTML.
if ( empty( $link ) ) {
$link = add_query_arg(
'plan', sanitize_title( $plan ),
home_url( '/checkout/' )
);
}
1 site
$29
Buy for 1 site
Pricing planWP Coder block
Edit the fields: the block updates, and the snippet shows where each value goes.
field types for block fields — 8 in the free version
visitor conditions, plus page rules
ready-made snippets instead of small plugins
build tools — no React, no npm
Built for people who write code
Custom features and markup without editing theme files.
One set of blocks you can import on every client site.
Landing pages and sections clients can edit safely.
One place for every tweak instead of ten small plugins.
The free plugin on WordPress.org runs snippets, site-wide scripts and simple blocks. WP Coder Pro is for blocks your clients can edit, dynamic markup without PHP, precise targeting — and whole pages.
Blocks with fields
Turn a snippet into a Gutenberg block with real fields: repeaters for lists and cards, post and term pickers, toggles, selects, rich text, images and icons — each with its own label, help text and a live preview.
Dynamic HTML
Show or hide parts of the markup with <If>, repeat rows with <Loop> — over a repeater or the latest posts — and print post, user, ACF and WooCommerce data with short placeholders.
Targeting
Pick posts, pages, categories, archives and post types, then narrow it down by user role, schedule, device, browser, OS, language, cookie, referrer, URL or new and returning visitors.
Pages and speed
Make a snippet the template of a page, or start from a blank template without the theme. Each page gets one combined CSS and JS file, jQuery only when the code needs it, and none of the plugin files you remove.
Also in Pro
HTML, CSS, JavaScript and PHP in one editor with a live preview. CSS and JS load only where the snippet is used.
Name each value you want editable and pick a type: text, rich text, image, toggle, repeater and 15 more. Put {{$name}} where the value goes.
Show parts of the markup with <If>, repeat rows with <Loop>, read posts and custom fields with QuickCode.
Add the WP Coder block in Gutenberg and pick the snippet: its sidebar shows the fields you listed. Its shortcode works everywhere else.
Nothing to compile. The block editor builds the fields from your attribute list, so a new block is ready as soon as you save the snippet.
A few of the jobs WP Coder Pro does on real sites.
Team members, pricing tables, FAQs, testimonials: build the block once, and editors fill in the fields without touching the code.
Give a page its own template that ignores the theme, then assemble it from your blocks.
Show a sale banner only during the sale, only to returning visitors on desktop, only on the English version of the site.
Put analytics, pixels, meta tags and JSON-LD where they belong, without another plugin.
Close the front end with your own maintenance page while you work, and restyle the login page with your own CSS and JS.
Replace a handful of single-purpose plugins with snippets and the built-in tools.
The free WP Coder, functions.php and a custom block plugin, side by side.
| Feature | WP Coder Pro | WP Coder (free) | functions.php | Custom block plugin |
|---|---|---|---|---|
| Gutenberg block with fields | 20 field types, repeaters, labels | 8 basic field types | No | Yes, written in React |
| Where and for whom it shows | Page rules + 10 visitor conditions | Whole site or by shortcode | Written by hand | Written by hand |
| Logic and live data in HTML | Loop Logic and QuickCode | No — PHP only | PHP | PHP and React |
| Page templates | Snippet as template, Blank template | No | Template files in the theme | Written by hand |
| CSS and JS per page | Combined, jQuery only when needed | A file per snippet | Enqueued by hand | Per block |
| Revisions and Search & Replace | Yes | No | Git | Git |
| HTML, CSS, JS and PHP | One editor, live preview | One editor, live preview | PHP here, CSS and JS in other files | Files in the plugin |
| Build step | None | None | None | npm and a build |
| Survives a theme change | Yes | Yes | No, it lives in the theme | Yes |
| Cost | From $29, one-time | Free | Your time | Your time |
Free version: WP Coder on WordPress.org.
Custom PHP runs inside your site, so WP Coder Pro checks it, watches it and lets you test it before visitors see it.
A snippet whose PHP stops the site with a fatal error is switched off, the next page loads, and an admin notice links to it.
Every path that runs your PHP goes through the same check. A snippet that calls a blocked function is not executed.
Only administrators see a snippet in test mode, its PHP included, until you switch it live.
Turn on Revision History and earlier versions of each snippet are kept, so a change can be rolled back.
Snippets, PHP in HTML, Global PHP and include files share one blocklist.
exec · system · shell_exec · passthru · `…`popen · proc_open · pcntl_execeval · assert · create_functionbase64_decodehooks · WP_Query · $wpdb · REST APIA blocked name used as plain text, not called, does not trigger the check.
Reviews of the free WP Coder on WordPress.org: rated 4.9 out of 5 from 32 reviews, with 10,000+ active installations.
“I know css/html/jquery but I have no experience creating WP plugins. For someone like me WP Coder makes it very easy to add custom code to WP. This plugin is fantastic!”
Review of WP Coder (free)
“This is the first plugin I’ve used for which I have no criticisms at all. It’s clean, simple, and works reliably, even when I fill it with fairly complex code.”
Review of WP Coder (free)
“Amazing plugin and easy to use! I am happy I found this plugin and the support is AMAZING!!”
Review of WP Coder (free)
Every plan has all Pro features, lifetime updates and support. Pick the number of sites.
$29 one-time
For the one site you run or build.
$39 one-time
For freelancers with a few client sites.
$49 one-time
For agencies that ship to many sites.
15-day money-back guarantee. Not a fit? Ask for a full refund within 15 days.
One-time payment, no subscription · Secure checkout by Paddle
At a glance
Didn’t find your answer?
Contact supportYes. The free version, WP Coder on WordPress.org, has the code editor, basic display rules and a block with 8 field types. Pro adds 12 more field types including repeaters, Loop Logic, visitor targeting, custom templates and the site tools. If Pro is not right for you, ask for a refund within 15 days.
To build snippets, yes: you write the HTML and CSS yourself, and JavaScript or PHP when a snippet needs them. The people who later fill in a block’s fields in Gutenberg do not need to code.
No. You pay once and get updates and support for life, for the number of sites in your plan.
A snippet’s CSS and JavaScript load only on pages where it is used, and can be minified. You can also remove scripts and styles other plugins load where they are not needed.
Safe Mode switches off a snippet whose PHP stops the site with a fatal error, so the next page loads, and leaves an admin notice that links to it. Calls such as eval, exec and system are blocked before the code runs.
Yes. Snippets are Gutenberg blocks and shortcodes, so they work in any theme, in the Classic editor and in page builders that accept shortcodes. Custom page templates can also ignore the theme completely.
Yes. Export snippets as a JSON file and import them on another site; the icons a snippet uses travel with it.