Extension · Elementor · King Addons

Custom Code Manager: snippets with a rule engine

This is not the Elementor Advanced → Custom CSS feature. Custom Code Manager is a wp-admin snippet library with placement and rules, stored as posts of type kng_custom_code.

Get King Addons

Install the plugin from WordPress.org, enable this extension in the dashboard, then follow the steps on this page.

Get King Addons

What it actually does

FREE_LIMIT = 10. Pro removes the cap via hasPro() (Freemius).

Snippets can inject in head, footer (priority 99), or a custom hook the class registers. A rule engine caches which snippets run on the current request. Debug logging can print in the footer.

AJAX exists to save, delete, toggle, duplicate, export, and load a snippet without a full page reload.

Where to find it in WordPress

Enable Custom Code Manager. Open its King Addons screen to add snippets. Meta keys use prefix _kng_cc_.

How to set it up

  1. Enable the manager. Dashboard toggle.
  2. Add a snippet. Choose CSS, JS, or HTML. Stay under 10 on free.
  3. Set placement. Header, footer, or custom hook.
  4. Add targeting rules. Only output on the requests you intend — do not paste global JS “to test” and leave it.
  5. Toggle from the list. Disable without deleting.

Controls that change behavior

ControlWhat the plugin does
Snippet typeCSS vs JS vs HTML.
Placementwp_head, wp_footer, or custom_hook.
RulesRequest targeting; results are cached per request.
Free limit10 snippets until Pro.
Free vs Pro. Free: 10 snippets. Pro: higher limits and extra placements.

When this is the right tool

Notes from the implementation

Per-element CSS in the editor is the Custom CSS feature. This manager is site-wide snippets. kingaddons.com.

FAQ

Why can’t I add an 11th snippet?

FREE_LIMIT is 10 without Pro.

Will this survive an Elementor regenerate CSS?

Yes. Snippets are not Elementor CSS files; they print from PHP hooks.

Other King Addons extensions

Get King Addons

Custom Code Manager ships in King Addons for Elementor. Install the plugin from WordPress.org, then come back to this guide when you configure it.

Get King Addons