前言介紹
- 這款 WordPress 外掛「Open Graph Protocol Framework」是 2012-12-20 上架。
- 目前有 3000 個安裝啟用數。
- 上一次更新是 2023-12-29,距離現在已有 493 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 6.0 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 7.4 以上。
- 有 14 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
itthinx |
外掛標籤
ogp | google | twitter | facebook | open graph protocol |
內容簡介
開放圖形協定(Open Graph protocol)可讓任何網頁成為社交圖形中的豐富物件。例如,Facebook 上就使用這個協定,讓任何網頁都可以具有 Facebook 上的任何其他物件的功能。
本WordPress外掛旨在自動化添加基本和可選元數據到站點的頁面的過程。它還被設計為其他外掛或主題的框架,允許根據需要修改和適應提供的信息。
如果您發現此外掛有用,並想支持我們的工作,可以在商店購買,謝謝!
用法
安裝並啟用外掛。它會自動為文章、頁面等呈現以下元數據:
og:title:使用頁面的標題,這為文章、頁面、存檔等提供了標題。
og:type:通常為article,首頁為website,博客主頁為blog。
og:image:對於支持特色圖像的文章類型,使用特色圖像的 URL。其他元數據包括og:image:width、og:image:height、og:image:url、og:image:secure_url 和og:image:alt。
og:url:當前頁面的 URL。
og:site_name:站點名稱。
og:description:如果可用則使用完整摘要,否則從內容中進行推導。對於作者和存檔頁面,使用頁面類型和標題。
og:locale:當前區域設置。
og:locale:alternate:如果安裝了WPML,則表明可用的其他區域設置。
og:image:alt屬性的內容基於特色圖像的替代文字、缺少替代文字時的圖像標題,或缺少這些的圖像說明。如果這些任何一個為空,則不呈現此屬性。
過濾器
此部分是為開發人員而寫的。如果您不是開發人員,可以安全地跳過它。
外掛提供以下過濾器:
open_graph_protocol_meta
此過濾器允許修改給定元標記的content屬性的值。
它被用於支持的每種元數據。
參數:
string content - 當前的content屬性值
string property - 元數據名稱,例如og:title
過濾器必須返回:
string -content屬性的所需值
open_graph_protocol_meta_tag
此過濾器允許修改實際呈現在頁面
中的HTML標記。參數:
string - HTML 標記。
string property - 元數據名稱,例如og:title
string content - content 屬性的值
過濾器必須返回:
- string HTML標記的所需輸出。
open_graph_protocol_metas
此過濾器允許在呈現元數據之前添加或刪除元數據。
原文外掛簡介
The Open Graph protocol enables any web page to become a rich object in a social graph. For instance, this is used on Facebook to allow any web page to have the same functionality as any other object on Facebook.
This WordPress plugin is aimed at automating the process of adding basic and optional metadata to a site’s pages. It is also designed to act as a framework for other plugins or themes and allows to modify and adapt the information provided as needed.
If you find this plugin useful and would like to support our work, you can do so by purchasing in our Shop, thank you!
Usage
Install and activate the plugin. It will automatically render the following metadata for posts, pages, etc. :
og:title : The page’s title is used, this provides the title for posts, pages, archives etc.
og:type : The type will be article in general, website for the front page and blog for the blog homepage.
og:image : For post types that support featured images, the URL of the featured image is used. Additional metadata og:image:width, og:image:height, og:image:url, og:image:secure_url and og:image:alt are added.
og:url : The URL of the current page.
og:site_name : The name of the site.
og:description : Uses the full excerpt if available, otherwise derives it from the content. For author and archive pages, the type of page and title is used.
og:locale : The current locale.
og:locale:alternate : Indicates additional locales available if WPML is installed.
The content of the og:image:alt property is based on the Alt Text of the featured image, the image’s Caption in lack thereof, or ultimately the image’s Description in lack of the latter. If any of those are empty, the property is not rendered.
Filters
This section is for developers. If you’re not a developer, you can safely skip it.
The plugin provides the following filters:
open_graph_protocol_meta
This filter allows to modify the value of the content attribute for a given meta tag.
It is invoked for every supported type of metadata.
Parameters:
string content – the current value of the content attribute
string property – the metadata name, for example og:title
Filters must return:
string the desired value of the content attribute
open_graph_protocol_meta_tag
This filter allows to modify the actual HTML tag that is rendered in the
Parameters:
string HTML tag
string property – the metadata name, for example og:title
string content – the value of the content attribute
Filters must return:
– string the desired output for the HTML tag
open_graph_protocol_metas
This filter allows to add or remove metadata before it is rendered.
Parameters:
array of metadata indexed by metadata name
Filters must return:
– array of metadata indexed by metadata name
open_graph_protocol_echo_metas
This filter allows to modify the HTML that renders the plugin’s meta tags in the
Parameters:
string HTML with tags to be rendered
Filters must return:
– string HTML with tags to be rendered
Why this plugin?
This plugin was created because we needed an extendable way to render meta tags based on the Open Graph protocol, which would allow to modify the meta tag content rendered or add meta tags when appropriate based on external data.
None of the existing plugins provided a sufficiently flexible way of doing that, among other reasons we needed a solution that would comply with all of these requirements and none of the existing solutions does:
must be compatible with WordPress 3.5
must automatically add meta tags for featured images
must be automated and create sensible meta tag content for each page, we don’t want to manually indicate the tag content for every page
must provide a framework for extension through hooks and filters on every tag, and provide a design that allows other plugins to modify the meta tags in flexible ways
must not ask to provide your Facebook account details or application ID when there is no need for it
must not be bloated with features you don’t want or need when you simply want Open Graph metatags to be rendered automatically for your pages
Logo Attribution
The logo used for this plugin’s icon and banner is the Open Graph protocol logo by Facebook – ogp.me. Licensed under Public Domain via Wikimedia Commons.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Open Graph Protocol Framework」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0.0 | 1.0.1 | 1.0.2 | 1.0.3 | 1.0.4 | 1.0.5 | 1.0.6 | 1.0.7 | 1.0.8 | 1.0.9 | 1.1.0 | 1.2.0 | 1.2.1 | 1.2.2 | 1.3.0 | 1.4.0 | 1.5.0 | 1.6.0 | 1.7.0 | 1.8.0 | 1.9.0 | trunk | 1.0.10 |
延伸相關外掛(你可能也想知道)
Facebook for WooCommerce 》這是官方版的「Facebook for WooCommerce」外掛,可將你的 WooCommerce 網站與 Facebook 連接。藉由此外掛,你可以安裝 Facebook 的像素碼、上傳你的線上商店...。
Meta pixel for WordPress 》這個外掛會為你的網頁安裝一個 Meta Pixel,這樣你就可以捕捉使用者與你的網頁溝通互動時所執行的動作,例如:產生潛在客戶、檢視內容、加入購物車、開始結帳...。
Nextend Social Login and Register 》ge and registration form, link the social accounts to the existing WordPress user accounts or create new users if necessary, enable users to link t...。
Smash Balloon Social Post Feed – Simple Social Feeds for WordPress 》此外掛可以在您的 WordPress 網站上顯示 Facebook 文章,且完全可定制、響應式、可被搜尋引擎檢索和符合 GDPR 規範。您可以從您的 Facebook 粉絲專頁或 Faceb...。
Facebook Chat Plugin – Live Chat Plugin for WordPress 》在您的網站上使用 Messenger 聊天與客戶溝通。Chat Plugin 是由 Meta Business 維護的聊天小工具,可在您的網站上提供即時聊天。, 網站訪客不論使用電腦或手...。
Open Graph and Twitter Card Tags 》此外掛可增進你的 WordPress 頁面、文章、WooCommerce 商品或任何其他文章類型在社群媒體上的分享,透過設定正確的 Facebook Open Graph 標籤。, 此外掛也允...。
Simple Share Buttons Adder 》Simple Share Buttons Adder 是一款可以在所有文章和頁面中添加分享按鈕的外掛,正如其名,它非常簡單易用。, 新的“現代分享按鈕”選項卡是基於 CSS 的設置,...。
Social Media Widget 》快來查看適用於您網站的 WordPress 最新優惠。, 社交媒體小工具是一個簡單的側邊欄小工具,允許用戶輸入他們的社交媒體網站個人資料網址和其他訂閱選項,顯示...。
OG — Better Share on Social Media 》毫不設定,功能強大。, 我們相信這個外掛對於初學者來說是最好的選擇,因為它不需要設定,只需安裝並啟用它 - 所有的神奇都將被完成!。
Feed Them Social – Social Media Feeds, Video, and Photo Galleries 》輕鬆地創建和展示可自定義的 Instagram、Facebook、Twitter 或 YouTube 社交饗宴。在桌面、平板電腦和移動設備上具有響應式設計。, 功能, , 快速安裝和設置。...。
Social Media Feather | social media sharing 》WordPress Social Media Feather(翻譯:WordPress 社交媒體羽毛)是一個輕量級免費的社交媒體 WordPress 外掛,讓你可以快速而無痛地將社交分享和追蹤功能添...。
miniOrange Social Login and Register (Discord, Google, Twitter, LinkedIn) 》WordPress Social Login 外掛讓使用者可以透過廣泛使用的社交應用程式如 Facebook、Google、LinkedIn、Twitter、Apple、Discord、Twitch、Line、Wechat 及另...。
Genesis Simple Share 》Genesis Simple Share是專為Genesis子佈景主題而設計的簡單易用的外掛程式。我們致力於讓預設選項和初始設定變得非常簡單實用。, 預設設定應該會自動啟用文章...。
10Web Social Post Feed 》10WebSocial, 這是一個 WordPress 外掛的名稱,沒有翻譯內容。。
Tagembed: Embed Twitter Feed, Google Reviews, YouTube Videos, TikTok, RSS Feed & More Social Media Feeds 》Tagembed 是領先的社交媒體聚合工具,讓使用者聚合、整理和嵌入 Instagram Feed、Twitter Feed、Facebook Feed、YouTube Video、Google Reviews、RSS Feed、L...。