Automattic\WooCommerce\StoreApi\Routes\V1
ShopperListItemsByKey::get_args
Get method arguments for this REST route.
Method of the class: ShopperListItemsByKey{}
No Hooks.
Returns
Array.
Usage
$ShopperListItemsByKey = new ShopperListItemsByKey(); $ShopperListItemsByKey->get_args();
ShopperListItemsByKey::get_args() ShopperListItemsByKey::get args code WC 10.9.1
public function get_args() {
return array(
'args' => array(
'slug' => array(
'description' => __( 'Stable slug for the list.', 'woocommerce' ),
'type' => 'string',
),
'key' => array(
'description' => __( 'Item key.', 'woocommerce' ),
'type' => 'string',
),
),
array(
'methods' => \WP_REST_Server::DELETABLE,
'callback' => array( $this, 'get_response' ),
'permission_callback' => function () {
return is_user_logged_in();
},
),
'schema' => array( $this->schema, 'get_public_item_schema' ),
);
}