• 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 / Jetpack::authorize_starting() – This action fires at the beginning of the Manager::authorize method.

You appear to be a bot. Output may be restricted

Description

This action fires at the beginning of the Manager::authorize method.

Usage

Jetpack::authorize_starting();

Parameters

Returns

void

Source

File name: jetpack/class.jetpack.php
Lines:

1 to 24 of 24
  public static function authorize_starting() {
    $jetpack_unique_connection = Jetpack_Options::get_option( 'unique_connection' );
    // Checking if site has been active/connected previously before recording unique connection.
    if ( ! $jetpack_unique_connection ) {
      // jetpack_unique_connection option has never been set.
      $jetpack_unique_connection = array(
        'connected'    => 0,
        'disconnected' => 0,
        'version'      => '3.6.1',
      );

      update_option( 'jetpack_unique_connection', $jetpack_unique_connection );

      // Track unique connection.
      $jetpack = self::init();

      $jetpack->stat( 'connections', 'unique-connection' );
      $jetpack->do_stats( 'server_side' );
    }

    // Increment number of times connected.
    $jetpack_unique_connection['connected'] += 1;
    Jetpack_Options::update_option( 'unique_connection', $jetpack_unique_connection );
  }
 

 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: 19 December 2019 | Last updated: 9 February 2020

Primary Sidebar

Information

Function name: Jetpack::authorize_starting
Class ref: Jetpack
Plugin ref: Jetpack
Version: 9.2
Sourcefile: class.jetpack.php
File ref: class.jetpack.php
Deprecated?: No
API Letters: A,J,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