Automattic\WooCommerce\Internal\RestApi\Routes\V4\Refunds
Controller::get_endpoint_args
List of args for endpoints. These may alter how data is returned or formatted. Extended by routes.
Method of the class: Controller{}
No Hooks.
Returns
Array.
Usage
// protected - for code of main (parent) or child class $result = $this->get_endpoint_args(): array;
Controller::get_endpoint_args() Controller::get endpoint args code WC 10.4.3
protected function get_endpoint_args(): array {
return array(
'num_decimals' => array(
'default' => wc_get_price_decimals(),
'description' => __( 'Number of decimal points to use in each resource.', 'woocommerce' ),
'type' => 'integer',
'sanitize_callback' => 'absint',
'validate_callback' => 'rest_validate_request_arg',
),
);
}