includes/class-freemius.php
function _sync_cron_method( array $blog_ids, $current_blog_id = null ) {
            if ( $this->is_registered() ) {
                if ( $this->has_paid_plan() ) {
                    // Initiate background plan sync.
                    $this->_sync_license( true, false, $current_blog_id );

                    if ( $this->is_paying() ) {
                        // Check for premium plugin updates.
                        $this->check_updates( true );
                    }
                } else {
                    // Sync install(s) (only if something changed locally).
                    if ( 1 < count( $blog_ids ) ) {
                        $this->sync_installs();
                    } else {
                        $this->sync_install();
                    }
                }
            }
        }
function _sync_cron_method( array $blog_ids, $current_blog_id = null ) {
            if ( $this->is_registered() ) {
                if ( $this->has_paid_plan() ) {
                    // Initiate background plan sync.
                    $this->_sync_license( true, false, $current_blog_id );

                    if ( $this->is_paying() ) {
                        // Check for premium plugin updates.
                        $this->check_updates( true );
                    }
                } else {
                    // Sync install(s) (only if something changed locally).
                    if ( 1 < count( $blog_ids ) ) {
                        $this->sync_installs();
                    } else {
                        $this->sync_install();
                    }
                }
            }
        }
function _sync_cron_method ( array $ blog_ids , $ current_blog_id = null ) { if ( $ this -> is_registered ( ) ) { if ( $ this -> has_paid_plan ( ) ) { // Initiate background plan sync.
 $ this -> _sync_license ( true , false , $ current_blog_id ) ; if ( $ this -> is_paying ( ) ) { // Check for premium plugin updates.
 $ this -> check_updates ( true ) ; } } else { // Sync install(s) (only if something changed locally).
 if ( 1 < count ( $ blog_ids ) ) { $ this -> sync_installs ( ) ; } else { $ this -> sync_install ( ) ; } } } }
The actual data sync cron logic.

@author Vova Feldman (@svovaf)
@since  2.0.0

@param int[]    $blog_ids
@param int|null $current_blog_id @since 2.2.3. This is passed from the `execute_cron` method and used by the
`_sync_plugin_license` method in order to switch to the previous blog when sending
updates for a single site in case `execute_cron` has switched to a different blog.
The actual data sync cron logic .