OCodeInsert
Inject custom HTML, JavaScript, CSS, and PHP snippets anywhere on your site: head, before content, after content, footer, and 7 other locations. A lean alternative to WPCode. Snippets are scoped by page, prioritised, revisioned, linted by OIntel, and protected by Safe Mode with auto-recovery.
Test a location.
See what fires.
This is a UI simulation of OCodeInsert's built-in URL inspector, showing you exactly what snippets would fire for any page on your site. When installed, it reads your live snippets table and evaluates the conditions in real time.
Inspect a URL.
Read the matches.
Simulated demo. Runs automatically as you scroll. The real plugin reads live data from your snippet tables.
Everything snippets,
nothing extra.
One plugin. No external services. No tracking pixels phoning home. Your snippets, your server, your rules.
Click around.
It's all real.
Six interactive previews of the actual OCodeInsert admin. No screenshots; these are working mock-ups of what ships in the plugin.
| Title | Type | Location | Status | Last fired |
|---|---|---|---|---|
| Google Analytics | JS | head | active | 2m ago |
| Cookie banner | HTML | footer | active | 2m ago |
| Author bio extension | HTML | after_content | active | 14m ago |
| Schema.org JSON-LD | HTML | head | active | 14m ago |
| Affiliate disclosure | HTML | after_paragraph | active | 1h ago |
| Login page styling | CSS | login_page | paused | 3d ago |
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "<?php echo get_the_title(); ?>",
"datePublished": "<?php echo get_the_date('c'); ?>",
"author": {
"@type": "Person",
"name": "<?php the_author(); ?>"
}
}
</script>| Rev | Author | Saved | Status | Action |
|---|---|---|---|---|
| #14 | editor (id:14) | 2m ago | current | view |
| #13 | admin (id:1) | 2h ago | published | restore |
| #12 | editor (id:14) | 1d ago | published | restore |
| #11 | admin (id:1) | 3d ago | draft | restore |
| #10 | admin (id:1) | 1w ago | published | restore |
| Snippet | URL | User | Fired |
|---|---|---|---|
| Google Analytics | /blog/post-1 | guest | 2s ago |
| Cookie banner | /about | guest | 4s ago |
| Schema JSON-LD | /blog/post-1 | guest | 4s ago |
| Author bio extension | /blog/welcome | id:14 | 12s ago |
| Affiliate disclosure | /reviews/headphones | guest | 22s ago |
?oci_safe=1 to any URL while logged in as an admin.| When | Action | Triggered by | Reason |
|---|---|---|---|
| 3d ago | off | admin (id:1) | manual toggle |
| 3d ago | on | admin (id:1) | ?oci_safe=1 URL |
| 9d ago | off | admin (id:1) | manual toggle |
| 9d ago | on | editor (id:14) | PHP fatal caught |
| 21d ago | off | admin (id:1) | fresh install |
What you get
vs. what they sell you.
Most snippet plugins for WordPress hit a paywall the moment you need conditions, revisions, or recovery. OCodeInsert ships every feature in the free version, no Pro tier, no add-ons.
| WPCode (Headers/Footers) | Code Snippets | Custom CSS & JS | OCodeInsert | |
|---|---|---|---|---|
| HTML / JS / CSS snippet types | HTML/JS only | ✓ | CSS/JS only | ✓ |
| PHP snippet type (capability + Pro gated) | paid add-on | ✓ | n/a | Pro |
| 11 injection locations | 3 (head/body/footer) | ✓ | 2 | Built in |
| After-paragraph N injection | no | paid add-on | no | Built in |
| URL pattern targeting (wildcards) | paid add-on | ✓ | no | Built in |
| User condition (logged-in / logged-out) | no | paid add-on | no | Built in |
| User role targeting | paid add-on | ✓ | no | Built in |
| Device targeting (mobile / desktop) | paid add-on | paid add-on | no | Built in |
| Schedule (start / end date) | paid add-on | paid add-on | no | Built in |
| Snippet revision history (25 per snippet) | no | ✓ | no | Built in |
| Safe Mode + auto-recovery on PHP fatal | partial | paid add-on | no | Built in |
| Recovery URL token (locked-out admins) | no | no | no | Built in |
| OIntel linter (security + perf checks) | no | no | no | Built in |
| Built-in snippet library with placeholders | paid add-on | no | no | Built in |
| Execution log (per snippet, 10k rows) | no | paid add-on | no | Built in |
| Per-snippet priority ordering | no | ✓ | no | Built in |
| CodeMirror syntax highlighting | ✓ | ✓ | ✓ | Built in |
| OTheme hook locations (7 extra) | no | no | no | Built in |
| Tracking pixels phoning home | yes | partial | no | Never |
| Pricing model | Free + $99 yr Pro | Free + $79 yr Pro | Free | Free + Pro for PHP |
Clean public API.
Read the source.
Static OCI_Snippets and OCI_Settings APIs cover save, fetch, toggle, duplicate, status, revisions, and Safe Mode toggling. The OCI_Linter exposes security and performance checks. The snippets table is yours to query directly. Extend any subsystem without forking.
// Insert a snippet into the site <head> from PHP via the OCI_Snippets API. OCI_Snippets::save_snippet([ 'title' => 'Google Analytics', 'type' => 'js', 'location' => 'head', 'priority' => 10, 'status' => 'published', 'code' => "gtag('config', 'G-XXXXXXX');", ]); // Stored in {prefix}oci_snippets · auto-wrapped in <script> · gated by Safe Mode.
Free for HTML, JS, CSS.
Pro unlocks PHP.
HTML, JavaScript, and CSS snippets ship 100% free with every targeting rule, every injection location, revisions, OIntel linting, and Safe Mode. The PHP snippet type executes only with a Pro license on top of the WordPress unfiltered_html capability check.
OCodeInsert Free.
- 3 snippet types (HTML, JS, CSS)
- 11 injection locations + 7 OTheme hooks
- Revisions, library, OIntel linter
- Safe Mode + auto-recovery + recovery URL
OCodeInsert Pro.
- Everything in Free
- PHP snippet type (capability + license gated)
- ob_start() output capture, error logging
- Auto-pause on PHP fatal via shutdown handler
Complete your stack.
You are already running one Orravo plugin. These are the commercial ones our customers reach for next.
Full-stack email infrastructure for WordPress: built-in SMTP, subscriber CRM, campaign builder, automation flows, A/B testing, WooCommerce integration, lead scoring, deliverability tools, REST API, webhooks, and more.
ExploreLightweight form builder and workflow automation engine.
ExploreNative ad manager for WordPress.
Explore
