跳到内容

OpenGraph Fallback Embed

v1.3.7

Gary Pendergast · 2026年3月25日 上架

Provides an embed block and auto-embed fallback based on a site's OpenGraph tags when no other embed handler matches the URL.

正在使用
10+
评分
暂无
累计下载
494
最近更新
2026年3月26日
需要 WordPress 6.3+已测试到 7.0.9PHP 7.4+

截图

A URL with no oEmbed provider shows as a plain link by default.
A URL with no oEmbed provider shows as a plain link by default.
With OpenGraph Fallback Embed active, the same URL renders as a rich card with title, description, and image.
With OpenGraph Fallback Embed active, the same URL renders as a rich card with title, description, and image.
The OpenGraph Embed block in the editor with a live preview.
The OpenGraph Embed block in the editor with a live preview.

OpenGraph Fallback Embed adds a custom Gutenberg block and an auto-embed fallback that renders rich link cards using OpenGraph metadata from any URL.

Features:

  • OpenGraph Embed block — Paste any URL to embed it as a styled card showing the page’s title, description, image, and site name.
  • Auto-embed fallback — When WordPress can’t find an oEmbed provider for a URL pasted on its own line, this plugin automatically fetches the page’s OpenGraph tags and renders a card instead of a plain link.
  • Graceful degradation — Falls back to Twitter Card meta tags, then to HTML <title> and <meta name="description"> when OpenGraph tags are missing.
  • Transient caching — Fetched metadata is cached for 7 days to minimise external requests.

Development

The source code for this plugin, including unminified JavaScript and CSS, is available on GitHub:

OpenGraph Fallback Embed on GitHub

The plugin uses @wordpress/scripts for building. Source files are in the src/ directory. See the repository README for build instructions.

Plums

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

导航

说明

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

© 2026 Plums