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 |
|---|---|
| 321 | foreach ( $cat_names as $cat_name ) { |
| 322 | if ( 'rdf' == $type ) |
| 323 | $the_list .= "\t\t<dc:subject><![CDATA[$cat_name]]></dc:subject>\n"; |
| 324 | elseif ( 'atom' == $type ) |
| 325 | $the_list .= sprintf( '<category scheme="%1$s" term="%2$s" />', esc_attr( apply_filters( 'get_bloginfo_rss', get_bloginfo( 'url' ) ) ), esc_attr( $cat_name ) ); |
| 326 | else |
| 327 | $the_list .= "\t\t<category><![CDATA[" . @html_entity_decode( $cat_name, ENT_COMPAT, get_option('blog_charset') ) . "]]></category>\n"; |
| 328 | } |
| 329 | |
| 330 | return apply_filters('the_category_rss', $the_list, $type); |
| 331 | } |
| 332 | |
| 333 | /** |
| 334 | * Display the post categories in the feed. |
| 335 | * |
| 336 | * @package WordPress |
| 337 | * @subpackage Feed |
| 338 | * @since 0.71 |
| 339 | * @see get_the_category_rss() For better explanation. |