WordPress at Your Fingertips
function is not described

WC_REST_System_Status_V2_Controller::get_item_mappings_per_fields() public WC 3.9.0

Return an array of sections and the data associated with each.

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

No Hooks.

Return

Array.

Usage

$WC_REST_System_Status_V2_Controller = new WC_REST_System_Status_V2_Controller();
$WC_REST_System_Status_V2_Controller->get_item_mappings_per_fields( $fields );
$fields(array) (required)
List of fields to be included on the response.

Changelog

Since 3.9.0 Introduced.

Code of WC_REST_System_Status_V2_Controller::get_item_mappings_per_fields() WC 5.9.0

public function get_item_mappings_per_fields( $fields ) {
	return array(
		'environment'        => $this->get_environment_info_per_fields( $fields ),
		'database'           => $this->get_database_info(),
		'active_plugins'     => $this->get_active_plugins(),
		'inactive_plugins'   => $this->get_inactive_plugins(),
		'dropins_mu_plugins' => $this->get_dropins_mu_plugins(),
		'theme'              => $this->get_theme_info(),
		'settings'           => $this->get_settings(),
		'security'           => $this->get_security_info(),
		'pages'              => $this->get_pages(),
		'post_type_counts'   => $this->get_post_type_counts(),
	);
}