Automattic\WooCommerce\Admin\API
Themes::get_collection_params()
Get the query params for collections.
Метод класса: Themes{}
Хуки из метода
Возвращает
Массив
.
Использование
$Themes = new Themes(); $Themes->get_collection_params();
Код Themes::get_collection_params() Themes::get collection params WC 8.3.1
public function get_collection_params() { $params['context'] = $this->get_context_param( array( 'default' => 'view' ) ); $params['pluginzip'] = array( 'description' => __( 'A zip file of the theme to be uploaded.', 'woocommerce' ), 'type' => 'file', 'validate_callback' => 'rest_validate_request_arg', ); return apply_filters( 'woocommerce_rest_themes_collection_params', $params ); }