Linux 软件免费装
Banner图

Open Graph Protocol Framework

开发者 itthinx
更新时间 2026年10月8日 02:53
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv3

标签

google facebook ogp open graph protocol X

下载

1.0.0 1.0.1 1.0.10 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.10.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 2.0.0 2.1.0 3.0.0

详情介绍:

Make your content look great when shared on social media. Automatically controls how your posts and pages appear on Facebook, X, and other social platforms. 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 automates 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! Supports WooCommerce to include essential product metadata on product pages. The plugin allows you to choose a fallback image which is used when no featured image is set for shared pages, posts, etc. This helps to maintain a visually consistent experience on social platforms and feeds. 用法 Install and activate the plugin. It will automatically render the following metadata for posts, pages, etc. : 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. You can also choose a fallback image that is used on social networks if no featured image is set for a shared page. 过滤器 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: Filters must return: open_graph_protocol_meta_tag This filter allows to modify the actual HTML <meta> tag that is rendered in the <head> section of pages. Parameters: Filters must return: open_graph_protocol_metas This filter allows to add or remove metadata before it is rendered. Parameters: Filters must return: open_graph_protocol_echo_metas This filter allows to modify the HTML that renders the plugin's meta tags in the <head> section. Parameters: Filters must return: open_graph_protocol_framework_ext This filter allows to determine whether additional meta tags should be produced for supported integrations. Parameters: Filters must return: 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: 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. Validators To test the generated metadata you can use several tools, among those:

安装:

See also the Open Graph Protocol plugin pages and documentation.
  1. Use the Add new option found in the Plugins menu in WordPress and search for Open Graph Protocol or upload the plugin zip file or extract the open-graph-protocol folder to your site's /wp-content/plugins/ directory.
  2. Enable the plugin from the Plugins menu in WordPress.

屏幕截图:

  • Plugin info

升级注意事项:

Works with the latest version of WordPress.

常见问题:

Where is the documentation?

The plugin's documentation pages are here.

Where can I ask a question?

You can post a comment on the plugin page.

Where can I find out more about the Open Graph protocol?

The Open Graph protocol specification is available on ogp.me.

更新日志:

See the complete changelog for details.