Automattic\WooCommerce\StoreApi\Routes\V1

Order::get_args()publicWC 1.0

Get method arguments for this REST route.

Method of the class: Order{}

No Hooks.

Return

Array. An array of endpoints.

Usage

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

Order::get_args() code WC 9.4.2

public function get_args() {
	return [
		[
			'methods'             => \WP_REST_Server::READABLE,
			'callback'            => [ $this, 'get_response' ],
			'permission_callback' => [ $this, 'is_authorized' ],
			'args'                => [
				'context' => $this->get_context_param( [ 'default' => 'view' ] ),
			],
		],
		'schema' => [ $this->schema, 'get_public_item_schema' ],
	];
}