X7ROOT File Manager
Current Path:
/home/notabjze/hourglass.life/wp-content/plugins/woocommerce/src/Admin/API
home
/
notabjze
/
hourglass.life
/
wp-content
/
plugins
/
woocommerce
/
src
/
Admin
/
API
/
ðŸ“
..
ðŸ“
AI
📄
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.97 KB)
📄
LaunchYourStore.php
(5.15 KB)
📄
Leaderboards.php
(18.22 KB)
📄
Marketing.php
(4.84 KB)
📄
MarketingCampaignTypes.php
(6.02 KB)
📄
MarketingCampaigns.php
(9.64 KB)
📄
MarketingChannels.php
(5.74 KB)
📄
MarketingOverview.php
(3.36 KB)
📄
MarketingRecommendations.php
(5.94 KB)
📄
MobileAppMagicLink.php
(2.1 KB)
📄
NoteActions.php
(2.39 KB)
📄
Notes.php
(25.79 KB)
📄
Notice.php
(2.38 KB)
📄
OnboardingFreeExtensions.php
(2.58 KB)
📄
OnboardingPlugins.php
(12.84 KB)
📄
OnboardingProductTypes.php
(1.8 KB)
📄
OnboardingProducts.php
(1.94 KB)
📄
OnboardingProfile.php
(18.38 KB)
📄
OnboardingTasks.php
(32.03 KB)
📄
OnboardingThemes.php
(18.09 KB)
📄
Options.php
(10 KB)
📄
Orders.php
(10.13 KB)
📄
PaymentGatewaySuggestions.php
(5.86 KB)
📄
Plugins.php
(21.22 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
(6.03 KB)
📄
Products.php
(9.73 KB)
📄
ProductsLowInStock.php
(17.56 KB)
ðŸ“
Reports
📄
SettingOptions.php
(878 B)
📄
Settings.php
(4.2 KB)
📄
ShippingPartnerSuggestions.php
(5.74 KB)
📄
Taxes.php
(4.9 KB)
ðŸ“
Templates
📄
Themes.php
(6.12 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