
內容簡介
OpenGraph Fallback Embed 外掛提供自訂的 Gutenberg 區塊及自動嵌入回退功能,能夠從任何 URL 獲取 OpenGraph 元數據,生成豐富的連結卡片,提升網站內容的可視化效果。
【主要功能】
• OpenGraph 嵌入區塊:輕鬆嵌入任何 URL,顯示標題、描述、圖片及網站名稱
• 自動嵌入回退:無法找到 oEmbed 提供者時,自動獲取 OpenGraph 標籤
• 優雅降級:缺少 OpenGraph 標籤時,回退至 Twitter Card 元標籤
• 短暫快取:獲取的元數據會快取 7 天,減少外部請求
外掛標籤
開發者團隊
原文外掛簡介
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
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.
