Automattic\WooCommerce\StoreApi\Routes\V1
ShopperListsBySlug::get_args
Get method arguments for this REST route.
Method of the class: ShopperListsBySlug{}
No Hooks.
Returns
array.
Usage
$ShopperListsBySlug = new ShopperListsBySlug(); $ShopperListsBySlug->get_args();
ShopperListsBySlug::get_args() ShopperListsBySlug::get args code WC 11.0.1
public function get_args() {
return array(
'args' => array(
'slug' => array(
'description' => __( 'Stable slug for the list.', 'woocommerce' ),
'type' => 'string',
),
),
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' ),
);
}