WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
1184 | * This filter registers the collection parameter, but does not map the |
1185 | * collection parameter to an internal WP_Term_Query parameter. Use the |
1186 | * `rest_{$this->taxonomy}_query` filter to set WP_Term_Query parameters. |
1187 | * |
1188 | * @since 4.7.0 |
1189 | * |
1190 | * @param array $query_params JSON Schema-formatted collection parameters. |
1191 | * @param WP_Taxonomy $taxonomy Taxonomy object. |
1192 | */ |
1193 | return apply_filters( "rest_{$this->taxonomy}_collection_params", $query_params, $taxonomy ); |
1194 | } |
1195 |
|
1196 | /** |
1197 | * Checks that the taxonomy is valid. |
1198 | * |
1199 | * @since 4.7.0 |
1200 | * |
1201 | * @param string $taxonomy Taxonomy to check. |
1202 | * @return bool Whether the taxonomy is allowed for REST management. |