You appear to be a bot. Output may be restricted
Description
Kicks off the initial sync.
Usage
$bool|null = Actions::do_initial_sync();
Parameters
Returns
bool|null False if sync is not allowed.
Source
File name: jetpack/vendor/automattic/jetpack-sync/src/class-actions.php
Lines:
1 to 22 of 22
public static function do_initial_sync() { // Lets not sync if we are not suppose to. if ( ! self::sync_allowed() ) { return false; } // Don't start new sync if a full sync is in process. $full_sync_module = Modules::get_module( 'full-sync' ); if ( $full_sync_module && $full_sync_module->is_started() && ! $full_sync_module->is_finished() ) { return false; } $initial_sync_config = array( 'options' => true, 'functions' => true, 'constants' => true, 'users' => array( get_current_user_id() ), 'network_options' => true, ); self::do_full_sync( $initial_sync_config ); }