WordPress at a glance
function is not described


Controller::get_export_collection_params() public WC 1.0

Get the query params for collections.

{} It's a method of the class: Controller{}

No Hooks.


Array. Nothing.


$Controller = new Controller();

Code of Controller::get_export_collection_params() WC 5.2.2

public function get_export_collection_params() {
	$params                = array();
	$params['report_args'] = array(
		'description'       => __( 'Parameters to pass on to the exported report.', 'woocommerce' ),
		'type'              => 'object',
		'validate_callback' => 'rest_validate_request_arg', // @todo: use each controller's schema?
	$params['email']       = array(
		'description'       => __( 'When true, email a link to download the export to the requesting user.', 'woocommerce' ),
		'type'              => 'boolean',
		'validate_callback' => 'rest_validate_request_arg',
	return $params;