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 |
---|---|
246 | } |
247 | |
248 | /** |
249 | * @internal |
250 | * Filter tag is basically: filter 'type' 'hook_name' 'description' |
251 | * |
252 | * Takes two parameters the term Object and the taxonomy name. Must return term object. |
253 | * @filter object get_term Used in @see get_term() as a catch-all filter for every $term |
254 | */ |
255 | $_term = apply_filters('get_term', $_term, $taxonomy); |
256 | /** |
257 | * @internal |
258 | * Filter tag is basically: filter 'type' 'hook_name' 'description' |
259 | * |
260 | * Takes two parameters the term Object and the taxonomy name. Must return term object. |
261 | * $taxonomy will be the taxonomy name, so for example, if 'category', it would be 'get_category' |
262 | * as the filter name. |
263 | * Useful for custom taxonomies or plugging into default taxonomies. |
264 | * @filter object get_$taxonomy Used in @see get_term() as specific filter for each $taxonomy. |