DocsOCodeInsertOverview & Quick Start
Getting Started

Overview & Quick Start

OCodeInsertorravo.com/docs/ocodeinsert/overview

Overview

OCodeInsert (v1.1.0) lets you inject HTML, JavaScript, and CSS snippets into any page without editing theme files. Snippets survive theme updates and are stored in wp_options — no custom database tables.

Constants:

ConstantValue
OCI_VERSION'1.1.0'
OCI_DIRAbsolute path to plugin directory
OCI_URLURL to plugin directory
OCI_PROfalse (set true to unlock Pro features)

Quick Start

  1. Click OCodeInsert in the WP sidebar
  2. Click + New Snippet
  3. Enter a title, select Type (JavaScript), select Location (Site Head)
  4. Paste your script into the CodeMirror editor
  5. Toggle Activate this snippet on
  6. Click Save Snippet

The script appears inside <head> on every page, auto-wrapped in <script> tags.

Overview & Quick Start — OCodeInsert Docs — Orravo