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