• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Jetpack a2z

Jetpack a2z

Jetpack a2z

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / Actions::do_initial_sync() – Kicks off the initial sync.

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 );
  }
 

 View on GitHub View on Trac

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Pinterest (Opens in new window)

Related

Published: 27 November 2019 | Last updated: 21 August 2020

Primary Sidebar

Information

Function name: Actions::do_initial_sync
Class ref: Actions
Plugin ref: Jetpack
Version: 9.2
Sourcefile: vendor/automattic/jetpack-sync/src/class-actions.php
File ref: vendor/automattic/jetpack-sync/src/class-actions.php
Deprecated?: No
API Letters: A,D,I,S

Footer

Jetpack a2z
Jetpack a2z
Jetpack a2z
WordPress 5.6
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  jetpack.wp-a2z.org
© Copyright Jetpack a2z 2014-2021. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites