WordPress at a glance
function is not described

WC_REST_Data_Currencies_Controller::get_items() public WC 1.0

Return the list of currencies.

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

No Hooks.

Return

WP_Error|WP_REST_Response.

Usage

$WC_REST_Data_Currencies_Controller = new WC_REST_Data_Currencies_Controller();
$WC_REST_Data_Currencies_Controller->get_items( $request );
$request(WP_REST_Request) (required)
Request data.

Code of WC_REST_Data_Currencies_Controller::get_items() WC 5.0.0

<?php
public function get_items( $request ) {
	$currencies = get_woocommerce_currencies();
	foreach ( array_keys( $currencies ) as $code ) {
		$currency = $this->get_currency( $code, $request );
		$response = $this->prepare_item_for_response( $currency, $request );
		$data[]   = $this->prepare_response_for_collection( $response );
	}

	return rest_ensure_response( $data );
}