Automattic\WooCommerce\Admin\API\Reports\Import

Controller::prepare_objects_query()protectedWC 1.0

Prepare request object as query args.

Method of the class: Controller{}

No Hooks.

Return

Array.

Usage

// protected - for code of main (parent) or child class
$result = $this->prepare_objects_query( $request );
$request(WP_REST_Request) (required)
Request data.

Controller::prepare_objects_query() code WC 7.3.0

protected function prepare_objects_query( $request ) {
	$args                  = array();
	$args['skip_existing'] = $request['skip_existing'];
	$args['days']          = $request['days'];

	return $args;
}