Title: WebSub (FKA. PubSubHubbub)
Author: joshfraz
Published: <strong>2009 年 5 月 15 日</strong>
Last modified: 2026 年 1 月 22 日

---

搜索插件

![](https://ps.w.org/pubsubhubbub/assets/banner-772x250.png?rev=3085446)

![](https://ps.w.org/pubsubhubbub/assets/icon.svg?rev=3086356)

# WebSub (FKA. PubSubHubbub)

 作者：[joshfraz](https://profiles.wordpress.org/joshfraz/)

[下载](https://downloads.wordpress.org/plugin/pubsubhubbub.4.0.0.zip)

 * [详情](https://cn.wordpress.org/plugins/pubsubhubbub/#description)
 * [评价](https://cn.wordpress.org/plugins/pubsubhubbub/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/pubsubhubbub/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/pubsubhubbub/#developers)

 [支持](https://wordpress.org/support/plugin/pubsubhubbub/)

## 描述

This plugin implements the [WebSub](https://www.w3.org/TR/websub/) protocol (formerly
known as PubSubHubbub) for WordPress. It enables real-time notifications when your
blog is updated and provides a subscriber API for other plugins to consume WebSub-
enabled feeds.

### Publisher Features

When you publish or update a post, this plugin automatically notifies WebSub hubs,
which then distribute the update to all subscribers in real-time.

 * Sends realtime notifications when you update your blog
 * Supports multi-user installations (WordPress MU)
 * Supports multiple hubs
 * Supports all feed formats used by WordPress (Atom, RSS2, RDF)
 * Adds `<link rel="hub">` and `<link rel="self">` declarations to feeds and HTML

### Subscriber Features

The plugin provides a subscriber API that allows other plugins (like feed readers)
to subscribe to WebSub-enabled feeds using WordPress hooks.

 * REST API callback endpoint for subscription verification and content delivery
 * Hub discovery from topic URLs (HTTP Link headers and feed content)
 * HMAC signature verification (SHA1, SHA256, SHA384, SHA512)
 * Full lifecycle hooks for integration with other plugins

### Supported Specifications

 * [WebSub W3C Recommendation](https://www.w3.org/TR/websub/)
 * [PubSubHubbub 0.4](https://pubsubhubbub.github.io/PubSubHubbub/pubsubhubbub-core-0.4.html)

### Default Hubs

By default this plugin will ping the following hubs:

 * [Demo hub on Google App Engine](https://pubsubhubbub.appspot.com)
 * [SuperFeedr](https://pubsubhubbub.superfeedr.com)
 * [WebSubHub](https://websubhub.com)

Please contact us if you operate a hub that you would like to be included as a default
option.

## 屏幕截图

 * [[
 * The WebSub Settings page allows you to define which hubs you want to use

## 安装

 1. Upload the `pubsubhubbub` directory to your `/wp-content/plugins/` directory
 2. 通过WordPress的“插件”菜单激活插件
 3. Select custom hubs under your WebSub/PubSubHubbub Settings (optional)

## 常见问题

### What is WebSub?

WebSub provides a common mechanism for communication between publishers of any kind
of Web content and their subscribers, based on HTTP web hooks. Subscription requests
are relayed through hubs, which validate and verify the request. Hubs then distribute
new and updated content to subscribers when it becomes available. WebSub was previously
known as PubSubHubbub.

### Where can I learn more about WebSub?

 * [W3C WebSub Recommendation](https://www.w3.org/TR/websub/)
 * [WebSub on GitHub](https://github.com/w3c/websub)
 * [WebSub.rocks – WebSub validator](https://websub.rocks/)

### What is a Hub?

A WebSub Hub is an implementation that handles subscription requests and distributes
content to subscribers when the corresponding topic URL has been updated.

### What is a Publisher?

A WebSub Publisher is an implementation that advertises a topic and hub URL on one
or more resource URLs. This plugin acts as a publisher for your WordPress site.

### What is a Subscriber?

A WebSub Subscriber is an implementation that discovers the hub and topic URL given
a resource URL, subscribes to updates at the hub, and accepts content distribution
requests from the hub. This plugin provides a subscriber API for other plugins to
use.

### How can I use the Subscriber API in my plugin?

The Subscriber API allows other plugins to subscribe to WebSub-enabled feeds using
WordPress hooks. See the [Subscriber API documentation](https://github.com/pubsubhubbub/wordpress-pubsubhubbub/blob/main/docs/subscriber-api.md)
for detailed examples and usage.

### Where can I find a list of available hooks?

For a complete list of available actions and filters, see the [Hooks Wiki](https://github.com/pubsubhubbub/wordpress-pubsubhubbub/wiki).

## 评价

![](https://secure.gravatar.com/avatar/81b91dca4a4b4bf3cdd5e296e7c5771b5da4de1f70e856177d4b8ccb449475af?
s=60&d=retro&r=g)

### 󠀁[Works No Problems](https://wordpress.org/support/topic/works-no-problems-6/)󠁿

 [totalgaz](https://profiles.wordpress.org/totalgaz/) 2023 年 5 月 3 日

Just learnt more on the benefits of using WebSub a.k.a PubSubHubbub and love that
this plugin did the necessary code to the feed instantly. I can see it worked as
a newly published blog was discovered instantly by Googlebot after publish using
the marked up feed url that I had submitted to search console sitemaps.

![](https://secure.gravatar.com/avatar/c9b3e49821ea5614dbb23d78d8fc9efc9d2bfb6fcdb3ddf5148e2fbd0619db77?
s=60&d=retro&r=g)

### 󠀁[Good Plugin](https://wordpress.org/support/topic/good-plugin-6317/)󠁿

 [upgradeorid](https://profiles.wordpress.org/updateorid/) 2023 年 2 月 20 日

Good and simple plugin

![](https://secure.gravatar.com/avatar/0771f018c5c481aecb62b5789070e663f32e747831b01c657b7246e43dc9ed21?
s=60&d=retro&r=g)

### 󠀁[Indispensable?](https://wordpress.org/support/topic/indispensable-241/)󠁿

 [dmsr](https://profiles.wordpress.org/dmsr/) 2022 年 7 月 22 日

Je l’installe systématiquement depuis bien longtemps sur tous mes sites!

![](https://secure.gravatar.com/avatar/60c13b341a258564c1ea64f00fb1e0ff41a1a00f761c465c31fc4b112b217550?
s=60&d=retro&r=g)

### 󠀁[Best Update Plugin](https://wordpress.org/support/topic/best-update-plugin/)󠁿

 [Adebowale Adekoya](https://profiles.wordpress.org/adebo4all/) 2020 年 2 月 5 日

This is the best update plugin so far.

 [ 阅读所有6条评价 ](https://wordpress.org/support/plugin/pubsubhubbub/reviews/)

## 贡献者及开发者

「WebSub (FKA. PubSubHubbub)」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ joshfraz ](https://profiles.wordpress.org/joshfraz/)
 *   [ Matthias Pfefferle ](https://profiles.wordpress.org/pfefferle/)
 *   [ IndieWeb ](https://profiles.wordpress.org/indieweb/)

「WebSub (FKA. PubSubHubbub)」插件已被翻译至 10 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/pubsubhubbub/contributors)
为本插件所做的贡献。

[帮助将「WebSub (FKA. PubSubHubbub)」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/pubsubhubbub)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/pubsubhubbub/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/pubsubhubbub/)，或通过[RSS](https://plugins.trac.wordpress.org/log/pubsubhubbub/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/pubsubhubbub/)。

## 更新日志

Project maintained on GitHub at [pubsubhubbub/wordpress-pubsubhubbub](https://github.com/pubsubhubbub/wordpress-pubsubhubbub).

### 4.0.0

 * Added WebSub Subscriber API with hooks for consumer plugins
 * Deprecated all `pubsubhubbub_*` hooks in favor of `websub_*` prefix (old hooks
   still work)
 * Replaced Grunt and Docker with wp-env for local development
 * Fixed double-escaping issues in feed discovery
 * Improved WebSub spec compliance and PHP 8 compatibility

### 3.2.1

 * fix: empty option on fresh install leads to broken feed links

### 3.2.0

 * improved validating, sanitizing, and escaping
 * simplified code

### 3.1.4

 * add Content-Type header to WebSub requests

### 3.1.3

 * update configuration files, fix typos, update dependencies

### 3.1.2

 * add new WebSub Hub

### 3.1.1

 * fix deprecation issue (PHP8)
 * add `_deprecated_function` warnings

### 3.1.0

 * update wording (more consequent use of WebSub)
 * add category-, tag- and author-feeds support

### 3.0.3

 * update dependencies

### 3.0.2

 * better `self-link` generator

### 3.0.1

 * add donation button

### 3.0.0

 * optimized the DB load
 * added help section
 * better code encapsulation

### 2.2.2

 * temporarily remove comment-feed support to be more GDPR compliant

### 2.2.1

 * display topic URLs on the settings page

### 2.2.0

 * fixed a discovery bug
 * changed http client

### 2.1.0

 * save pinged URLs to add correct headers

### 2.0.0

 * Complete rewrite
 * Support WebSub

### 1.0.0

 * First attempt

## 社区插件

该插件由社区开发和支持。 [为该插件贡献](https://github.com/pubsubhubbub/wordpress-pubsubhubbub/)

## 额外信息

 *  版本 **4.0.0**
 *  最后更新：**5 月前**
 *  活跃安装数量 **100,000+**
 *  WordPress 版本 ** 4.5 或更高版本 **
 *  已测试的最高版本为 **6.9.4**
 *  PHP 版本 ** 7.2 或更高版本 **
 *  语言
 * [Dutch](https://nl.wordpress.org/plugins/pubsubhubbub/) 、 [Dutch (Belgium)](https://nl-be.wordpress.org/plugins/pubsubhubbub/)、
   [English (UK)](https://en-gb.wordpress.org/plugins/pubsubhubbub/) 、 [English (US)](https://wordpress.org/plugins/pubsubhubbub/)、
   [Galician](https://gl.wordpress.org/plugins/pubsubhubbub/) 、 [German](https://de.wordpress.org/plugins/pubsubhubbub/)、
   [Japanese](https://ja.wordpress.org/plugins/pubsubhubbub/) 、 [Russian](https://ru.wordpress.org/plugins/pubsubhubbub/)、
   [Spanish (Chile)](https://cl.wordpress.org/plugins/pubsubhubbub/) 、 [Spanish (Spain)](https://es.wordpress.org/plugins/pubsubhubbub/)
   和 [Spanish (Venezuela)](https://ve.wordpress.org/plugins/pubsubhubbub/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/pubsubhubbub)
 * 标签
 * [feed](https://cn.wordpress.org/plugins/tags/feed/)[indieweb](https://cn.wordpress.org/plugins/tags/indieweb/)
   [pubsub](https://cn.wordpress.org/plugins/tags/pubsub/)[pubsubhubbub](https://cn.wordpress.org/plugins/tags/pubsubhubbub/)
   [websub](https://cn.wordpress.org/plugins/tags/websub/)
 *  [高级视图](https://cn.wordpress.org/plugins/pubsubhubbub/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  6 条 5 星评价     ](https://wordpress.org/support/plugin/pubsubhubbub/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/pubsubhubbub/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/pubsubhubbub/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/pubsubhubbub/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/pubsubhubbub/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/pubsubhubbub/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/pubsubhubbub/reviews/)

## 贡献者

 *   [ joshfraz ](https://profiles.wordpress.org/joshfraz/)
 *   [ Matthias Pfefferle ](https://profiles.wordpress.org/pfefferle/)
 *   [ IndieWeb ](https://profiles.wordpress.org/indieweb/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/pubsubhubbub/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://notiz.blog/donate/)