Linux 软件免费装
Banner图

Palasthotel Content Change Observer

开发者 palasthotel
edwardbock
janaeggebrecht
更新时间 2026年11月4日 13:33
捐献地址: 去捐款
PHP版本: 8.0 及以上
WordPress版本: 7.1
版权: GPL-3.0-or-later
版权网址: 版权信息

标签

content multisite sync developer wp-cli

下载

2.0.0

详情介绍:

Content Change Observer tells one WordPress site what changed on another. The observed site records modifications - saved and deleted posts, and anything a theme or plugin reports - and the sites observing it receive them and react in their own code, for example to refresh a cached teaser list or a mirrored menu. The plugin moves no content by itself. It transports the modification (content id, content type, create/update/delete and time); what happens next is up to the content_observer_on_modifications action on the observing site. Typical uses: Developer documentation: github.com/palasthotel/wp-palasthotel-content-change-observer

安装:

  1. Install the plugin on every site that observes or is observed, from Plugins > Add New or by uploading palasthotel-content-change-observer.zip
  2. Activate it
  3. Enter an API key under Content Change Observer → Settings on each site
  4. Connect the sites under Content Change Observer → Manage
  5. React to the content_observer_on_modifications action in your theme or plugin

屏幕截图:

  • Manage page: the sites observing this one and the sites it observes, each with a connection test
  • Connect a new site with its URL, slug, API key and relation type
  • Settings: this site's API key and the WP-Cron schedules

升级注意事项:

1.2.4 Security release. A site without an API key no longer accepts requests from other sites - set a key under Content Change Observer → Settings before updating if the field is empty.

常见问题:

Does it copy posts between sites?

No. It reports which content changed. Copying or refreshing content is done by your own code reacting to the modifications.

Can I record changes other than posts?

Yes. content_observer_add_modification( Modification::build( $id, 'my-type' )->update() ) records a modification of any content type.

更新日志:

2.0.0 ⚠ BREAKING CHANGES 1.2.4 Bug Fixes 1.2.3 1.2.1 1.2.0 1.1.0 1.0.0