跳到内容

glomex oEmbed

v0.9.8

Glomex · 2023年3月13日 上架

Paste a glomex Exchange video or playlist URL into any editor and WordPress renders the glomex player in its place.

正在使用
100+
评分
暂无
累计下载
3,341
最近更新
2026年9月24日
需要 WordPress 5.3.14+已测试到 7.1.5PHP 7.4+

贡献者

截图

Settings page: the global integration ID and custom data-* script attributes
Settings page: the global integration ID and custom data-* script attributes
A glomex Exchange URL pasted into the block editor renders the player preview
A glomex Exchange URL pasted into the block editor renders the player preview
The embedded glomex player on the published post
The embedded glomex player on the published post

glomex oEmbed connects your WordPress site to glomex Exchange. Paste a video or playlist URL into any editor and WordPress replaces it with the glomex player – no embed code to copy, no HTML to maintain.

The plugin registers glomex as a native WordPress oEmbed provider, so embedding works in the block editor, the classic editor and any editor that supports oEmbed. All you need is a glomex Exchange integration ID.

Once the integration ID is configured, embedding takes three steps:

  1. Forge a URL from template: https://exchange.glomex.com/[video|videos|playlist|playlists]/VIDEO_OR_PLAYLIST_ID (integrationId parameter is optional)
  2. Go to your post and paste the url into any editor (editor must support oEmbed)
  3. You get an embedded player inside content!

Shortcodes

[glomex_integration]

You can use the shortcode [glomex_integration] to embed a player in your post.
Additional shortcode parameters (not required):
* playlist_id – ID of the playlist to embed
* integration_id – override default integration ID
* variant – player variant (default: ‘player-listicle’)
* width – player width in pixels (default: responsive width)
* height – player height in pixels (default: 16:9 aspect ratio)

If both width and height are not specified, the player will use responsive sizing with 16:9 aspect ratio.

URL

The supported URL scheme is https://exchange.glomex.com/[video|videos|playlist|playlists]/VIDEO_OR_PLAYLIST_ID

The placeholder variables are:
* VIDEO_OR_PLAYLIST_ID (mandatory) – the element id to embed
* [video|videos|playlist|playlists] (mandatory) – select one item to embed – it should exist in your account and be accessible with the given integration ID

Allowed parameters:

  • integrationId (optional) – allows overriding integration ID for this single embed

Plugin settings are used by default in all cases. Query strings will override the setting.

Configuration options

The plugin adds a settings page with two options: the global integration ID and custom script attributes.

You can set up the default integration ID using the GLOMEX_INTEGRATION_ID environment variable.

Custom script attributes

On the settings page you can add custom HTML data-* attributes to the glomex player script tags. This is useful for telling performance/optimization plugins to leave the player script alone – for example, add data-cfasync = false to exclude the script from Cloudflare Rocket Loader, or data-no-optimize = 1 to exclude it from WP Rocket. Only data-* attribute names are accepted; other names are ignored. The attributes are added to the player script tag of each embed.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums