Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: get_term

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

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.