Snippets & AI Code for WordPress
Pick one of 100+ ready snippets or tell the AI what you need, and Custom Code adds the code safely, with no theme edits. It puts PHP, HTML, CSS and JavaScript exactly where you need it: header, footer, inside content, WooCommerce, page builders. Every snippet starts in test mode, and a crashing snippet switches itself off.
Works with any theme · WooCommerce, Elementor, Bricks, Divi, Beaver Builder, WPBakery, Avada · PHP 7.4+
Everything a snippet plugin should do
Free, complete, and it stays that way: features never move from free to Pro, and there are no nag banners.
AI snippet writer
Describe it in plain words ("WhatsApp button under the price") and get working code with the right location and conditions. It also explains code you paste and fixes snippets that crash.
100+ ready-made snippets
Hide prices for guests, GA4, Meta Pixel, limit login attempts, COD fee, custom order statuses, cookie banner with Consent Mode and more. Fill in a short form and it is added in test mode.
200+ places to put code
Header, body, footer, before or after paragraph N, 55 WooCommerce hooks, block themes, Elementor, Bricks, Divi, Astra, GeneratePress, Kadence and the hooks of popular plugins.
Crash protection
PHP is checked before it runs. A snippet that crashes your site is switched off at once, and a secret safe-mode link turns every snippet off if you ever need it.
Conditions without code
Run a snippet only on chosen pages, posts, categories, WooCommerce pages, for logged-in users, roles, devices or languages. Pro adds schedules, countries, UTM tags and cart rules.
Moves over from other plugins
Imports snippets from WPCode, Code Snippets, Header Footer Code Manager and Simple Custom CSS and JS, switched off so you can check them first.
The snippets people search Google for, ready to use
Search the library inside the plugin, fill in a value or two, and the snippet is added in test mode, so only you see it until you publish it.
Free and Pro
| Feature | Free | Pro |
|---|---|---|
| PHP, HTML, CSS and JavaScript snippets | check_circle | check_circle |
| 200+ locations, page builders and theme hooks | check_circle | check_circle |
| Test mode, crash protection, safe mode, activity log | check_circle | check_circle |
| Page, post, category, role, device and WooCommerce conditions | check_circle | check_circle |
| 100+ library snippets | check_circle | check_circle |
| AI writer, explainer and fixer | About 20 requests a month | $2 of AI a month (150+ requests) |
| Your own Anthropic API key, no limit from us | check_circle | check_circle |
| 16 Pro snippets: Meta Conversions API, GA4 e-commerce, TikTok, Pinterest, Snapchat, Google Ads enhanced conversions, checkout fields, payment rules, free gifts, quantity discounts, delay all scripts, white label, exit popup, geo redirect, sale banner | cancel | check_circle |
| Schedule, country, referrer, UTM, cookie, cart and past-purchase conditions | cancel | check_circle |
| Versions kept per snippet | 10 | 200, with a line-by-line comparison |
| Cloud library shared by all your sites | cancel | check_circle |
| Email support from WALoops | Forum | check_circle |
Pricing
Yearly, cancel any time. Pro is an add-on: keep the free plugin installed.
Free
$0
The whole plugin, 100+ snippets and about 20 AI requests a month.
Install from WordPress.orgPro 1 site
$49/year
16 Pro snippets, Pro conditions, $2 of AI a month, 200 versions with compare, cloud library, email support.
Agency 25 sites
$149/year
Everything in Pro on up to 25 sites, each with its own $2 of AI a month. One cloud library for all of them.
Buy Custom Code Pro
No WALoops account needed. Your license key and download link appear here after payment and are emailed to you.
check_circle You're all set
Your license key (also emailed to you):
download Download Custom Code Pro (.zip)
- Keep the free Custom Code plugin installed and active.
- In WordPress, go to Plugins → Add New → Upload Plugin, upload the zip and activate it.
- Open Custom Code → Pro license and paste the key.
Frequently asked questions
Is Custom Code really free?expand_more
Yes. The plugin on WordPress.org is complete: all snippet types, every location, conditions, test mode, crash protection, the activity log, import and export, and 100+ library snippets. Nothing in it expires, and features never move from free to Pro.
What happens if a PHP snippet breaks my site?expand_more
PHP is checked for errors before it is saved. If a snippet still crashes a page, Custom Code switches that snippet off on the spot and shows you the error with its line number. Settings also gives you a secret safe-mode link that turns every snippet off, even when you cannot reach the admin.
How does the AI work, and what does it cost?expand_more
The AI writer, explainer and fixer run on Claude through the WALoops AI service. Free sites get a small monthly allowance (about 20 requests), Pro sites get $2 of AI a month (150+ requests), and you can add your own Anthropic API key in Settings for no limit from us.
What does the AI service receive?expand_more
The text of your request, the code you ask about, and basic facts about your site (WordPress, PHP, theme and main plugin names) so the code fits. Prompts are not stored; we keep the token counts for the allowance. See the Custom Code privacy page for details.
Will my snippets slow the site down?expand_more
No. Snippets are compiled into small files in your uploads folder, so the front end runs no extra database queries. CSS and JS can load as cacheable files, and scripts can wait until the visitor interacts.
I have snippets in WPCode or Code Snippets. Can I move them?expand_more
Yes. Import / Export lists the snippets of WPCode, Code Snippets, Header Footer Code Manager and Simple Custom CSS and JS on your site and imports them switched off, so you can check each one before turning it on.
What happens when my Pro license ends?expand_more
Your snippets keep running, including ones that use Pro conditions. Pro library snippets, the Pro AI allowance, the cloud library and updates stop until you renew.
What is the difference between Pro and Agency?expand_more
The features are the same. Pro is for 1 site; Agency covers up to 25 sites, each with its own $2 of AI a month, and one cloud library for all of them.