Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How does the plugin work? #97

Open
brend2001 opened this issue Nov 15, 2020 · 1 comment
Open

How does the plugin work? #97

brend2001 opened this issue Nov 15, 2020 · 1 comment
Labels

Comments

@brend2001
Copy link

Hello, I don't fully understand how the plugin works, how to sync posts automatically. I've set up where to sync from where and what, but I don't know what else I should do to start syncing. I know it requires some programming knowledge, but I don’t understand that, I just want to sync a few wordpress posts. Can you help, describe how the plugin works? I would be very grateful. Thanks

@petitphp
Copy link
Member

Hi, welcome and thanks for your message.

TL;DR this plugin rely on a WP-CLI command to do the syncing between emitter and receivers sites. You can find examples here on how to setup a cron to do that.

After you setup a synchronization for a post_type between an emitter and some receivers, each time you create/update or delete a element of this post_type on the emitter an action is created for each receivers and saved in a custom table in the database.
A WP-CLI command must then run to process those actions on each receivers to sync the emitter content with them.

If you have a version of your site running locally you can test the command running :

wp content-sync-fusion queue pull --url=$url

(assuming wp is the wp-cli.phar executable).

Hope this make things clearer for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants