Snippets list
OCodeInsert in the WP sidebar. Columns:
- Status toggle
- Title
- Type badge
- Location
- Targeting summary
- Priority
- Actions: Edit / Duplicate / Export JSON / Delete
The toolbar has a live search by title plus filters by Type, Status, and Location.
CodeMirror editor
OCodeInsert uses WordPress's built-in wp-codemirror; no external dependencies.
| Type | CodeMirror mode |
|---|---|
| HTML | text/html (mixed; supports embedded JS + CSS) |
| JavaScript | text/javascript |
| CSS | text/css |
Features: syntax highlighting, line numbers, bracket and tag matching, auto-indent. Mode switches automatically when you change the Type dropdown.
Settings
Under OCodeInsert -> Settings (top nav tabs):
- Global Enable/Disable - master switch. When off, no snippets are injected but data is preserved.
- Safe Mode - suspends all snippet output. An amber notice appears in the admin.
- Role Permissions - which roles can access the OCodeInsert admin. Administrators always have access.
- Error Log - last 50 processing errors. Clear Log wipes them.
Per-page bypass
Append ?oci_safe=1 to any front-end URL to disable snippets for that single request, without affecting other visitors:
https://example.com/my-page/?oci_safe=1Useful for debugging without flipping global Safe Mode.

