Automattic\WooCommerce\Internal\ReceiptRendering

ReceiptRenderingRestController::get_args_for_get_order_receiptprivateWC 1.0

Get the accepted arguments for the GET request.

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

Хуков нет.

Возвращает

Массив[]. The accepted arguments for the GET request.

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

// private - только в коде основоного (родительского) класса
$result = $this->get_args_for_get_order_receipt(): array;

Код ReceiptRenderingRestController::get_args_for_get_order_receipt() WC 10.3.6

private function get_args_for_get_order_receipt(): array {
	return array(
		'id' => array(
			'description' => __( 'Unique identifier of the order.', 'woocommerce' ),
			'type'        => 'integer',
			'context'     => array( 'view', 'edit' ),
			'readonly'    => true,
		),
	);
}