WordPress at Your Fingertips
function is not described

WC_REST_Telemetry_Controller::get_collection_params() public WC 1.0

Get any query params needed.

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

No Hooks.

Return

Array.

Usage

$WC_REST_Telemetry_Controller = new WC_REST_Telemetry_Controller();
$WC_REST_Telemetry_Controller->get_collection_params();

Code of WC_REST_Telemetry_Controller::get_collection_params() WC 5.9.0

public function get_collection_params() {
	return array(
		'platform' => array(
			'description'       => __( 'Platform to track.', 'woocommerce' ),
			'required'          => true,
			'type'              => 'string',
			'sanitize_callback' => 'sanitize_text_field',
			'validate_callback' => 'rest_validate_request_arg',
		),
		'version'  => array(
			'description'       => __( 'Platform version to track.', 'woocommerce' ),
			'required'          => true,
			'type'              => 'string',
			'sanitize_callback' => 'sanitize_text_field',
			'validate_callback' => 'rest_validate_request_arg',
		),
	);
}