Automattic\WooCommerce\Blocks\StoreApi\Routes
ProductAttributesById::get_args() public WC 1.0
Get method arguments for this REST route.
{} It's a method of the class: ProductAttributesById{}
No Hooks.
Return
Array. An array of endpoints.
Usage
$ProductAttributesById = new ProductAttributesById(); $ProductAttributesById->get_args();
Code of ProductAttributesById::get_args() ProductAttributesById::get args WC 5.0.0
public function get_args() {
return [
'args' => array(
'id' => array(
'description' => __( 'Unique identifier for the resource.', 'woocommerce' ),
'type' => 'integer',
),
),
[
'methods' => \WP_REST_Server::READABLE,
'callback' => [ $this, 'get_response' ],
'permission_callback' => '__return_true',
'args' => array(
'context' => $this->get_context_param(
array(
'default' => 'view',
)
),
),
],
'schema' => [ $this->schema, 'get_public_item_schema' ],
];
}