Automattic\WooCommerce\StoreApi\Routes\V1

ShopperLists::get_argspublicWC 1.0

Get method arguments for this REST route.

Method of the class: ShopperLists{}

No Hooks.

Returns

Array.

Usage

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

ShopperLists::get_args() code WC 10.9.1

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