WC_REST_Coupons_V1_Controller::get_collection_params()
Get the query params for collections of attachments.
Метод класса: WC_REST_Coupons_V1_Controller{}
Хуков нет.
Возвращает
Массив
.
Использование
$WC_REST_Coupons_V1_Controller = new WC_REST_Coupons_V1_Controller(); $WC_REST_Coupons_V1_Controller->get_collection_params();
Код WC_REST_Coupons_V1_Controller::get_collection_params() WC REST Coupons V1 Controller::get collection params WC 9.3.1
public function get_collection_params() { $params = parent::get_collection_params(); $params['code'] = array( 'description' => __( 'Limit result set to resources with a specific code.', 'woocommerce' ), 'type' => 'string', 'sanitize_callback' => 'sanitize_text_field', 'validate_callback' => 'rest_validate_request_arg', ); return $params; }