WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

Automattic\WooCommerce\Blocks\StoreApi\Routes

Checkout::get_args() public WC 1.0

Get method arguments for this REST route.

{} Это метод класса: Checkout{}

Хуков нет.

Возвращает

Массив. An array of endpoints.

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

$Checkout = new Checkout();
$Checkout->get_args();

Код Checkout::get_args() WC 4.7.0

<?php
public function get_args() {
	return [
		[
			'methods'             => \WP_REST_Server::READABLE,
			'callback'            => [ $this, 'get_response' ],
			'permission_callback' => '__return_true',
			'args'                => [
				'context' => $this->get_context_param( [ 'default' => 'view' ] ),
			],
		],
		[
			'methods'             => \WP_REST_Server::EDITABLE,
			'callback'            => array( $this, 'get_response' ),
			'permission_callback' => '__return_true',
			'args'                => $this->schema->get_endpoint_args_for_item_schema( \WP_REST_Server::EDITABLE ),
		],
		[
			'methods'             => \WP_REST_Server::CREATABLE,
			'callback'            => [ $this, 'get_response' ],
			'permission_callback' => '__return_true',
			'args'                => array_merge(
				[
					'payment_data' => [
						'description' => __( 'Data to pass through to the payment method when processing payment.', 'woocommerce' ),
						'type'        => 'array',
						'items'       => [
							'type'       => 'object',
							'properties' => [
								'key'   => [
									'type' => 'string',
								],
								'value' => [
									'type' => 'string',
								],
							],
						],
					],
				],
				$this->schema->get_endpoint_args_for_item_schema( \WP_REST_Server::CREATABLE )
			),
		],
		'schema' => [ $this->schema, 'get_public_item_schema' ],
	];
}