Syncs
Syncs synchronizes attachments, posts and terms between multisites
★ 7stars
1forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/alsterverse/wp-syncs/archive/refs/heads/master.zipFrom the readme
Syncs
Requires PHP 7.0 and WordPress 4.6
Syncs synchronizes attachments, posts and terms between multisites
Installation
Usage
Example configuration for post types:
Example configuration for taxonomies:
How the sync works
Created data
When a new post, term or attachment is created on a multisite it will be created on the other multisites and all obeject ids will be linked with a global sync id that is stored in the syncs table like this:
id | syncid | objectid | objecttype | siteid
---- | ------- | --------- | ----------- | -------
1 | 1 | 15 | post | 1
2 | 1 | 32 | post | 2
3 | 1 | 90 | post | 3
All sync ids are stored as metadata on objects just because of WPQuery, when you read syncid with getmetadata it actual reads from the syncs table.
Updated data
When a post, term or attachment is updated on a multisite the master it's the multisite where the user is updating. The other objects on other multisites will be removed and created again with the same global sync id but with new object ids. That's why you can't use object id as a id, instead you have to use syncid value. It can be access via get
Read the full README on GitHub →
Releases
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.