Automattic\WooCommerce\Admin\API
Themes::get_collection_params()
Get the query params for collections.
Method of the class: Themes{}
Hooks from the method
Return
Array
.
Usage
$Themes = new Themes(); $Themes->get_collection_params();
Themes::get_collection_params() Themes::get collection params code 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 ); }