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 |
---|---|
467 | $tag_list = $before; |
468 | foreach ( $tags as $tag ) { |
469 | $link = get_tag_link($tag->term_id); |
470 | if ( is_wp_error( $link ) ) |
471 | return $link; |
472 | $tag_links[] = '<a href="' . $link . '" rel="tag">' . $tag->name . '</a>'; |
473 | } |
474 |
|
475 | $tag_links = join( $sep, $tag_links ); |
476 | $tag_links = apply_filters( 'the_tags', $tag_links ); |
477 | $tag_list .= $tag_links; |
478 |
|
479 | $tag_list .= $after; |
480 |
|
481 | return $tag_list; |
482 | } |
483 |
|
484 | function the_tags( $before = 'Tags: ', $sep = ', ', $after = '' ) { |
485 | $return = get_the_tag_list($before, $sep, $after); |