Automattic\WooCommerce\Blocks\StoreApi\Routes
ProductAttributeTerms::get_args() public WC 1.0
Get method arguments for this REST route.
{} Это метод класса: ProductAttributeTerms{}
Хуков нет.
Возвращает
Массив
. An array of endpoints.
Использование
$ProductAttributeTerms = new ProductAttributeTerms(); $ProductAttributeTerms->get_args();
Код ProductAttributeTerms::get_args() ProductAttributeTerms::get args WC 5.2.2
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(),
],
'schema' => [ $this->schema, 'get_public_item_schema' ],
];
}