WC_REST_System_Status_V2_Controller::get_items
Get a system status info, by section.
Метод класса: WC_REST_System_Status_V2_Controller{}
Хуков нет.
Возвращает
WP_Error|WP_REST_Response.
Использование
$WC_REST_System_Status_V2_Controller = new WC_REST_System_Status_V2_Controller(); $WC_REST_System_Status_V2_Controller->get_items( $request );
- $request(WP_REST_Request) (обязательный)
- Full details about the request.
Код WC_REST_System_Status_V2_Controller::get_items() WC REST System Status V2 Controller::get items WC 10.6.2
public function get_items( $request ) {
$fields = $this->get_fields_for_response( $request );
$mappings = $this->get_item_mappings_per_fields( $fields );
$response = $this->prepare_item_for_response( $mappings, $request );
return rest_ensure_response( $response );
}