Opt.team Widget Embedder
WordPress plugin that makes Opt.team widgets render correctly on any theme — including page builders (Elementor, Beaver Builder, Divi, Oxygen) that would otherwise overwrite the post body and drop the widget.
Install
- Download the ZIP above.
- In WordPress admin, go to Plugins → Add New → Upload Plugin.
- Pick the ZIP, click Install Now, then Activate.
- That's it. No settings screen, no configuration. The next Opt.team widget publish will render correctly.
Automatic updates
The plugin registers itself with WordPress's built-in update system via the standard Update URI header, pointing back to app.opt.team. When we ship a new version, the familiar “Update available” notice appears on the client's Plugins page within 12 hours (or immediately after they click Check for updates). One click to update — no re-download, no re-upload.
What it does
- On save: extracts the
<div class="bf-widget">…</div>block frompost_contentand caches it in a postmeta row keyed_opt_team_widget_html. This survives subsequent builder rebuilds ofpost_content. - On render: hooks
the_contentat priority 999 — AFTER Elementor, Beaver, Divi and every minifier have finished — and re-appends the widget if it isn't already in the rendered body. - REST endpoint: exposes
POST /wp-json/opt-team/v1/widget/{post_id}(and the matching DELETE) so the Opt.team platform can write or unpublish widgets without touchingpost_content. Uses the same Application Password you already configured under Settings → Integrations.
Uninstall
Deactivating the plugin stops widget re-injection; deleting it removes all hooks and the REST route. Postmeta cache entries are left intact to avoid destructive side effects — clear them explicitly if needed via DELETE /wp-json/opt-team/v1/widget/{post_id}.