Automattic\WooCommerce\Admin\API
Taxes::get_collection_params()
Get the query params for collections.
Метод класса: Taxes{}
Хуков нет.
Возвращает
Массив
.
Использование
$Taxes = new Taxes(); $Taxes->get_collection_params();
Код Taxes::get_collection_params() Taxes::get collection params WC 8.7.0
public function get_collection_params() { $params = parent::get_collection_params(); $params['search'] = array( 'description' => __( 'Search by similar tax code.', 'woocommerce' ), 'type' => 'string', 'validate_callback' => 'rest_validate_request_arg', ); $params['include'] = array( 'description' => __( 'Limit result set to items that have the specified rate ID(s) assigned.', 'woocommerce' ), 'type' => 'array', 'items' => array( 'type' => 'integer', ), 'default' => array(), 'validate_callback' => 'rest_validate_request_arg', ); return $params; }