Automattic\WooCommerce\StoreApi\Routes\V1\Agentic

CheckoutSessions::get_argspublicWC 1.0

Get method arguments for this REST route.

Method of the class: CheckoutSessions{}

No Hooks.

Returns

Array. An array of endpoints.

Usage

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

CheckoutSessions::get_args() code WC 10.7.0

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