PATH:
home
/
letacommog
/
aperobusiness
/
wp-content
/
plugins
/
woocommerce-admin
/
src
/
API
<?php /** * REST API Customers Controller * * Handles requests to /customers/* * * @package WooCommerce Admin/API */ namespace Automattic\WooCommerce\Admin\API; defined( 'ABSPATH' ) || exit; /** * Customers controller. * * @package WooCommerce Admin/API * @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'; /** * 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; } }
[+]
..
[-] SettingOptions.php
[edit]
[-] Notes.php
[edit]
[-] Themes.php
[edit]
[-] Taxes.php
[edit]
[-] OnboardingTasks.php
[edit]
[-] Data.php
[edit]
[-] Init.php
[edit]
[-] Products.php
[edit]
[-] NoteActions.php
[edit]
[-] DataDownloadIPs.php
[edit]
[-] Customers.php
[edit]
[-] Coupons.php
[edit]
[-] Leaderboards.php
[edit]
[-] ProductVariations.php
[edit]
[-] ProductCategories.php
[edit]
[-] DataCountries.php
[edit]
[-] OnboardingLevels.php
[edit]
[-] ProductReviews.php
[edit]
[-] Options.php
[edit]
[-] OnboardingProfile.php
[edit]
[-] Orders.php
[edit]
[+]
Reports
[-] OnboardingPlugins.php
[edit]