• 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 / Files / _inc/lib/core-api/wpcom-endpoints/memberships.php


Lines:

1 to 23 of 23
<?php // phpcs:disable WordPress.Files.FileName.InvalidClassFileName

/**
 * Memberships: API to communicate with "product" database.
 *
 * @package    Jetpack
 * @since      7.3.0
 */

use Automattic\Jetpack\Connection\Client;

/* class WPCOM_REST_API_V2_Endpoint_Memberships */
/* function WPCOM_REST_API_V2_Endpoint_Memberships::__construct() – WPCOM_REST_API_V2_Endpoint_Memberships constructor. */
/* function WPCOM_REST_API_V2_Endpoint_Memberships::register_routes() – Called automatically on `rest_api_init()`. */
/* function WPCOM_REST_API_V2_Endpoint_Memberships::get_status_permission_check() – Ensure the user has proper permissions */
/* function WPCOM_REST_API_V2_Endpoint_Memberships::create_product() – Do create a product based on data, or pass request to wpcom. */
/* function WPCOM_REST_API_V2_Endpoint_Memberships::create_products() – Automatically generate products according to type. */
/* function WPCOM_REST_API_V2_Endpoint_Memberships::get_status() – Get a status of connection for the site. If this is Jetpack, pass the request to wpcom. */

if ( ( defined( 'IS_WPCOM' ) && IS_WPCOM ) || Jetpack::is_active() ) {
  wpcom_rest_api_v2_load_plugin( 'WPCOM_REST_API_V2_Endpoint_Memberships' );
}
 

 View on GitHub View on Trac

Called by

    Invoked by

      Calls

      1 to 1 of 1
      • Jetpack::is_active() – Is Jetpack active? The method only checks if there’s an existing token for the master user. It doesn’t validate the token.

      Call hooks

      File name: _inc/lib/core-api/wpcom-endpoints/memberships.php
      Plugin ref: Jetpack
      Version: 9.2
      Deprecated?: No
      API Letters: _,A,C,I,L

      Related

      Published: 27 November 2019 | Last updated: 10 December 2020

      Primary Sidebar

      Information

      File name: _inc/lib/core-api/wpcom-endpoints/memberships.php
      Plugin ref: Jetpack
      Version: 9.2
      Deprecated?: No
      API Letters: _,A,C,I,L

      _inc/lib/core-api/wpcom-endpoints

      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