Reference

FAQ

OCodeInsertorravo.com/docs/ocodeinsert/faq

FAQ

Q: Will my snippets survive a plugin update?

Yes. Snippets are stored in wp_options, not plugin files. Updating or reinstalling the plugin does not delete snippet data.

Q: Will deactivating the plugin remove my snippets?

No. Deactivating only stops injection. Data is preserved. Only deleting the plugin triggers cleanup.

Q: Why is my snippet not showing on the page?

Check in this order:

  1. Is the plugin globally enabled? (Settings page)
  2. Is Safe Mode active?
  3. Is the snippet toggled Active?
  4. Does the page match the Page Type setting?
  5. Does the URL match the URL Pattern (if set)?
  6. Does the user match the User Condition?
  7. If using before_content or after_content, does the theme use the_content filter?

Q: Can I use PHP in snippets?

No. OCodeInsert outputs raw HTML, JavaScript, and CSS only. Use the Code Snippets plugin or functions.php for PHP.

Q: Does OCodeInsert work with page builders (Elementor, Divi, Beaver Builder)?

Yes. head and footer locations always work. For before_content/after_content, if the page builder bypasses the_content filter, OCodeInsert's JS fallback will handle injection. For most page builders, use head or footer for maximum reliability.

Q: How many snippets can I have?

No hard limit. Storing up to ~50 snippets in wp_options is optimal. OCodeInsert Pro automatically migrates to a dedicated database table when the count exceeds 50.

Q: Is OCodeInsert safe for client sites?

Yes. Snippet editing requires manage_options by default. You can restrict to specific roles in Settings. Safe mode prevents snippet damage. ?oci_safe=1 lets you debug without affecting clients.

Q: What happens if I paste JavaScript without <script> tags?

OCodeInsert auto-wraps it. Set Type to 'JavaScript' and paste raw JS -- the plugin adds the tags automatically.

Q: Can I import snippets from WPCode?

Not directly (WPCode uses a different format). Copy snippet code from WPCode and create new snippets in OCodeInsert manually.

Q: Where is snippet data stored?

In wp_options under oci_code_snippets as a JSON-encoded array. Do not edit it directly.

Q: How do I temporarily disable all snippets for debugging?

Two options: (1) Go to Settings, enable Safe Mode, save. (2) Add ?oci_safe=1 to any URL to disable snippets for just that page load.

FAQ — OCodeInsert Docs — Orravo