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:
| Constant | Value |
|---|---|
OCI_VERSION | '1.1.0' |
OCI_DIR | Absolute path to plugin directory |
OCI_URL | URL to plugin directory |
OCI_PRO | false (set true to unlock Pro features) |
Quick Start
- Click OCodeInsert in the WP sidebar
- Click + New Snippet
- Enter a title, select Type (JavaScript), select Location (Site Head)
- Paste your script into the CodeMirror editor
- Toggle Activate this snippet on
- Click Save Snippet
The script appears inside <head> on every page, auto-wrapped in <script> tags.
