WordPress at Your Fingertips
function is not described

WC_REST_Order_Refunds_V1_Controller::query_args() public WC 1.0

Query args.

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

No Hooks.

Return

Array.

Usage

$WC_REST_Order_Refunds_V1_Controller = new WC_REST_Order_Refunds_V1_Controller();
$WC_REST_Order_Refunds_V1_Controller->query_args( $args, $request );
$args(array) (required)
Request args.
$request(WP_REST_Request) (required)
Request object.

Code of WC_REST_Order_Refunds_V1_Controller::query_args() WC 5.9.0

public function query_args( $args, $request ) {
	$args['post_status']     = array_keys( wc_get_order_statuses() );
	$args['post_parent__in'] = array( absint( $request['order_id'] ) );

	return $args;
}