Linux 软件免费装
Banner图

LiveCodes Embed

开发者 hatemhosny
更新时间 2026年7月16日 21:05
捐献地址: 去捐款
PHP版本: 7.2 及以上
WordPress版本: 7.0
版权: MIT
版权网址: 版权信息

标签

embed code oembed playground livecodes

下载

1.0.0

详情介绍:

LiveCodes is a free, open-source, feature-rich, client-side code playground supporting 90+ languages and frameworks. This plugin registers livecodes.io as a trusted oEmbed provider, so embedding a playground is as simple as pasting its URL into the editor:
  1. In LiveCodes, click Share -> "Get short URL", and copy the share URL (or use any playground/project URL).
  2. Paste the URL on its own line in the WordPress editor.
  3. The URL is automatically replaced with a live, interactive playground.
A LiveCodes entry is also added to the block inserter (a variation of the core Embed block), so you can add an embed explicitly instead of pasting. Features:

屏幕截图:

  • The embedded interactive playground in a published post.
  • The LiveCodes block in the inserter.

升级注意事项:

1.0.0 Initial release.

常见问题:

Which URLs can be embedded?

Playground URLs on livecodes.io and its versioned subdomains, including share URLs (https://livecodes.io/?x=…). Documentation and blog URLs are intentionally not embedded and remain plain links.

How do I customize the embedded playground?

Configure the playground (theme, layout, active editor, tools pane, etc.) before sharing, or using URL query params; the share URL preserves your configuration. See the embeds documentation for details.

Can I use a self-hosted LiveCodes instance?

Yes. Use the livecodes_embed_url_pattern and livecodes_embed_provider_endpoint filters to point the plugin at your instance and its oEmbed endpoint (included in the official docker setup). Example: add_filter( 'livecodes_embed_url_pattern', function () { return '!^https?://livecodes\.example\.com/.*$!i'; } ); add_filter( 'livecodes_embed_provider_endpoint', function () { return 'https://livecodes.example.com/oembed'; } );

The embed shows as a plain link. Why?

Most commonly: WordPress caches oEmbed responses per post, so re-save the post after activating the plugin. Also note that some security-hardening plugins and strict Content-Security-Policy setups block third-party iframes entirely; check your site's frame-src/child-src CSP directives and security plugin settings.

Does this plugin collect any data?

No. It has no settings, stores nothing, and only talks to livecodes.io when rendering an embed (see "External services").

更新日志:

1.0.0