Reference › Hooks apply_filters( "rest_{$this->taxonomy}_collection_params" , array $query_params , WP_Taxonomy $taxonomy )
Since 4.7.0 Description Parameters Fired at Source History Filters collection parameters for the terms controller.
Description The dynamic part of the filter $this->taxonomy refers to the taxonomy slug for the controller. This filter registers the collection parameter, but does not map the collection parameter to an internal WP_Term<em>Query parameter. Use the rest</em>{$this->taxonomy}_query filter to set WP_Term_Query parameters.
Parameters
$query_paramsarray JSON Schema-formatted collection parameters.
$taxonomyWP_Taxonomy Taxonomy object. Fired at · 1 wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php:1229WP_REST_Terms_Controller::get_collection_params() Source View on Trac ↗ View on GitHub ↗
1223 * 1224 * @since 4.7 .0 1225 * 1226 * @param array $query_params JSON Schema- formatted collection parameters. 1227 * @param WP_Taxonomy $taxonomy Taxonomy object . 1228 * / 1229 return apply_filters ( "rest_{ $this -> taxonomy } _collection_params" , $query_params , $taxonomy ) ; 1230 } 1231 1232 / ** 1233 * Checks that the taxonomy is valid. 1234 * 1235 * @since 4.7 .0 History Introduced in 4.7.0 . Unchanged from 6.7.7 through 7.1.0.
6.7.7 6.8.8 6.9.7 7.0.4 7.1.0 Signature, return type and hooks compared across 5 parsed releases.
About this page Parsed data Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it. Corrections Something wrong on this page? Report it and it gets fixed in the next regeneration.