Automattic\WooCommerce\Internal\RestApi\Routes\V4

AbstractSchema::get_item_responsepublicWC 1.0

Get the item response.

Метод класса: AbstractSchema{}

Хуков нет.

Возвращает

Массив. The item response.

Использование

$AbstractSchema = new AbstractSchema();
$AbstractSchema->get_item_response( $item, $request, $include_fields ): array;
$item(разное) (обязательный)
WordPress representation of the item.
$request(WP_REST_Request) (обязательный)
Request object.
$include_fields(массив)
Fields to include in the response.
По умолчанию: array()

Код AbstractSchema::get_item_response() WC 10.5.0

abstract public function get_item_response( $item, WP_REST_Request $request, array $include_fields = array() ): array;