X7ROOT File Manager
Current Path:
/home/notabjze/starbudzca.com/wp-content/plugins/woocommerce/src/Admin/API
home
/
notabjze
/
starbudzca.com
/
wp-content
/
plugins
/
woocommerce
/
src
/
Admin
/
API
/
ðŸ“
..
📄
Coupons.php
(2.15 KB)
📄
CustomAttributeTraits.php
(3.4 KB)
📄
Customers.php
(2.11 KB)
📄
Data.php
(939 B)
📄
DataCountries.php
(1.12 KB)
📄
DataDownloadIPs.php
(4.15 KB)
📄
Experiments.php
(1.82 KB)
📄
Features.php
(1.7 KB)
📄
Init.php
(8.47 KB)
📄
Leaderboards.php
(17.7 KB)
📄
Marketing.php
(4.08 KB)
📄
MarketingCampaignTypes.php
(6.02 KB)
📄
MarketingCampaigns.php
(7.47 KB)
📄
MarketingChannels.php
(5.74 KB)
📄
MarketingOverview.php
(3.36 KB)
📄
MarketingRecommendations.php
(5.94 KB)
📄
MobileAppMagicLink.php
(2.1 KB)
📄
NavigationFavorites.php
(4.83 KB)
📄
NoteActions.php
(2.39 KB)
📄
Notes.php
(25.79 KB)
📄
OnboardingFreeExtensions.php
(3.75 KB)
📄
OnboardingPlugins.php
(11.93 KB)
📄
OnboardingProductTypes.php
(1.8 KB)
📄
OnboardingProducts.php
(1.94 KB)
📄
OnboardingProfile.php
(16.29 KB)
📄
OnboardingTasks.php
(31.93 KB)
📄
OnboardingThemes.php
(13.7 KB)
📄
Options.php
(9.45 KB)
📄
Orders.php
(10.17 KB)
📄
PaymentGatewaySuggestions.php
(5.44 KB)
📄
Plugins.php
(19.99 KB)
📄
ProductAttributeTerms.php
(4.36 KB)
📄
ProductAttributes.php
(4.46 KB)
📄
ProductCategories.php
(458 B)
📄
ProductForm.php
(3.06 KB)
📄
ProductReviews.php
(1.3 KB)
📄
ProductVariations.php
(5.97 KB)
📄
Products.php
(9.7 KB)
📄
ProductsLowInStock.php
(13.93 KB)
ðŸ“
Reports
📄
SettingOptions.php
(878 B)
📄
ShippingPartnerSuggestions.php
(5.74 KB)
📄
Taxes.php
(4.9 KB)
ðŸ“
Templates
📄
Themes.php
(6.09 KB)
Editing: Customers.php
<?php /** * REST API Customers Controller * * Handles requests to /customers/* */ namespace Automattic\WooCommerce\Admin\API; defined( 'ABSPATH' ) || exit; /** * Customers controller. * * @internal * @extends \Automattic\WooCommerce\Admin\API\Reports\Customers\Controller */ class Customers extends \Automattic\WooCommerce\Admin\API\Reports\Customers\Controller { /** * Route base. * * @var string */ protected $rest_base = 'customers'; /** * Register the routes for customers. */ public function register_routes() { register_rest_route( $this->namespace, '/' . $this->rest_base, array( array( 'methods' => \WP_REST_Server::READABLE, 'callback' => array( $this, 'get_items' ), 'permission_callback' => array( $this, 'get_items_permissions_check' ), 'args' => $this->get_collection_params(), ), 'schema' => array( $this, 'get_public_item_schema' ), ) ); register_rest_route( $this->namespace, '/' . $this->rest_base . '/(?P<id>[\d-]+)', array( 'args' => array( 'id' => array( 'description' => __( 'Unique ID for the resource.', 'woocommerce' ), 'type' => 'integer', ), ), array( 'methods' => \WP_REST_Server::READABLE, 'callback' => array( $this, 'get_item' ), 'permission_callback' => array( $this, 'get_items_permissions_check' ), 'args' => $this->get_collection_params(), ), 'schema' => array( $this, 'get_public_item_schema' ), ) ); } /** * Maps query arguments from the REST request. * * @param array $request Request array. * @return array */ protected function prepare_reports_query( $request ) { $args = parent::prepare_reports_query( $request ); $args['customers'] = $request['include']; return $args; } /** * Get the query params for collections. * * @return array */ public function get_collection_params() { $params = parent::get_collection_params(); $params['include'] = $params['customers']; unset( $params['customers'] ); return $params; } }
Upload File
Create Folder