woody-wordpress / woody-acf-sync

A WP CLI command to synchronize ACF fields
GNU General Public License v2.0
13 stars 0 forks source link

Multisite integration #3

Open Fatih-esgi opened 2 years ago

Fatih-esgi commented 2 years ago

hello, Do you have a solution to use the synchronization command for a wordpress multisite?
Best regards Fatih

Auraylien commented 1 year ago

Hello, Just simply precise the URL of your website with the --url=xxx parameter. If no url parameter is provided, the main site of the network is used.

So, if your site is mywebsite.com and your second site is second.mywebsite.com, use the following command to synchronize the fields on second.mywebsite.com:

wp acf sync --url=second.mywebsite.com