Automattic\WooCommerce\StoreApi\Routes\V1

CartRemoveItem::get_args()publicWC 1.0

Get method arguments for this REST route.

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

Хуков нет.

Возвращает

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

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

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

Код CartRemoveItem::get_args() WC 8.7.0

public function get_args() {
	return [
		[
			'methods'             => \WP_REST_Server::CREATABLE,
			'callback'            => [ $this, 'get_response' ],
			'permission_callback' => '__return_true',
			'args'                => [
				'key' => [
					'description' => __( 'Unique identifier (key) for the cart item.', 'woocommerce' ),
					'type'        => 'string',
				],
			],
		],
		'schema'      => [ $this->schema, 'get_public_item_schema' ],
		'allow_batch' => [ 'v1' => true ],
	];
}