Custom Code: Snippets & AI Code Generator for WordPress | WALoops
WALoops
code Custom Code · free WordPress plugin by WALoops

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.

auto_awesome

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.

menu_book

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.

alt_route

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.

verified_user

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.

tune

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.

sync_alt

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.

Hide price in WooCommerce Add Google Analytics 4 Meta Pixel purchase event Change Add to cart text Minimum order amount Disable comments Limit login attempts Hide the login page COD fee Disable COD above a total Custom order status WhatsApp chat button Cookie banner with Consent Mode Lazy YouTube embeds Maintenance mode Redirect after login

Free and Pro

FeatureFreePro
PHP, HTML, CSS and JavaScript snippetscheck_circlecheck_circle
200+ locations, page builders and theme hookscheck_circlecheck_circle
Test mode, crash protection, safe mode, activity logcheck_circlecheck_circle
Page, post, category, role, device and WooCommerce conditionscheck_circlecheck_circle
100+ library snippetscheck_circlecheck_circle
AI writer, explainer and fixerAbout 20 requests a month$2 of AI a month (150+ requests)
Your own Anthropic API key, no limit from uscheck_circlecheck_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 bannercancelcheck_circle
Schedule, country, referrer, UTM, cookie, cart and past-purchase conditionscancelcheck_circle
Versions kept per snippet10200, with a line-by-line comparison
Cloud library shared by all your sitescancelcheck_circle
Email support from WALoopsForumcheck_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.org

Pro 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.

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.

Guides · Privacy · Support forum

Join 500+ D2C Brands on WAloops

Add the code your site needs, without the risk

Install Custom Code free from WordPress.org. Add Pro when you want the tracking, store and agency extras.

✓ No credit card required   ✓ 7-day free trial   ✓ Cancel anytime