WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\StoreApi\Routes

Cart::get_args() public WC 1.0

Get method arguments for this REST route.

{} It's a method of the class: Cart{}

No Hooks.

Return

Array. An array of endpoints.

Usage

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

Code of Cart::get_args() WC 5.6.0

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' ] ),
			],
		],
		'schema' => [ $this->schema, 'get_public_item_schema' ],
	];
}