Automattic\WooCommerce\Admin\API

Themes::get_collection_params()publicWC 1.0

Get the query params for collections.

Метод класса: Themes{}

Хуки из метода

Возвращает

Массив.

Использование

$Themes = new Themes();
$Themes->get_collection_params();

Код Themes::get_collection_params() WC 8.7.0

public function get_collection_params() {
	$params              = array( '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 );
}