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 |
---|---|
250 | * Filters the terms query default arguments. |
251 | * |
252 | * Use {@see 'get_terms_args'} to filter the passed arguments. |
253 | * |
254 | * @since 4.4.0 |
255 | * |
256 | * @param array $defaults An array of default get_terms() arguments. |
257 | * @param string[] $taxonomies An array of taxonomy names. |
258 | */ |
259 | $this->query_var_defaults = apply_filters( 'get_terms_defaults', $this->query_var_defaults, $taxonomies ); |
260 |
|
261 | $query = wp_parse_args( $query, $this->query_var_defaults ); |
262 |
|
263 | $query['number'] = absint( $query['number'] ); |
264 | $query['offset'] = absint( $query['offset'] ); |
265 |
|
266 | // 'parent' overrides 'child_of'. |
267 | if ( 0 < (int) $query['parent'] ) { |
268 | $query['child_of'] = false; |