Automattic\WooCommerce\StoreApi\Routes\V1
ProductAttributeTerms::get_args
Get method arguments for this REST route.
Method of the class: ProductAttributeTerms{}
No Hooks.
Returns
Array. An array of endpoints.
Usage
$ProductAttributeTerms = new ProductAttributeTerms(); $ProductAttributeTerms->get_args();
ProductAttributeTerms::get_args() ProductAttributeTerms::get args code WC 10.3.6
public function get_args() {
return [
'args' => array(
'attribute_id' => array(
'description' => __( 'Unique identifier for the attribute.', 'woocommerce' ),
'type' => 'integer',
),
),
[
'methods' => \WP_REST_Server::READABLE,
'callback' => [ $this, 'get_response' ],
'permission_callback' => '__return_true',
'args' => $this->get_collection_params(),
'allow_batch' => [ 'v1' => true ],
],
'schema' => [ $this->schema, 'get_public_item_schema' ],
];
}