WordPress at a glance
function is not described

WC_REST_Setting_Options_V2_Controller::get_items() public WC 3.0.0

Return all settings in a group.

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

No Hooks.

Return

WP_Error|WP_REST_Response.

Usage

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

Changelog

Since 3.0.0 Introduced.

Code of WC_REST_Setting_Options_V2_Controller::get_items() WC 5.0.0

<?php
public function get_items( $request ) {
	$settings = $this->get_group_settings( $request['group_id'] );

	if ( is_wp_error( $settings ) ) {
		return $settings;
	}

	$data = array();

	foreach ( $settings as $setting_obj ) {
		$setting = $this->prepare_item_for_response( $setting_obj, $request );
		$setting = $this->prepare_response_for_collection( $setting );
		if ( $this->is_setting_type_valid( $setting['type'] ) ) {
			$data[] = $setting;
		}
	}

	return rest_ensure_response( $data );
}