Developer API - Hooks & actions
WP Synchro provides a few ways to integrate your own code with events in WP Synchro.
Beware: For your own code in a plugin or theme to be loaded, you need to disable WP Synchro MU plugin in "Setup" menu, as this functionality disables themes and plugins during WP Synchro requests.
Here is a list of integration points into WP Synchro:
Action: wpsynchro_synchronization_completed
This action is run when WP Synchro completes with success.
Example:
add_action("wpsynchro_synchronization_completed", function() {
error_log("sync completed");
});
Action: wpsynchro_synchronization_failure
This action is run when WP Synchro fails during a synchronization.
Example:
add_action("wpsynchro_synchronization_failure", function() {
error_log("sync failed");
});
Still using free version? - Try PRO with 14 day free trial
PRO version makes it possible for you to synchronize files between your sites and to
automatically make a database backup before migration.
You will get support for Basic Authentication and email notifications on success or failure. You also get access to priority support