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 |
---|---|
58 | $title = wp_specialchars($item['title']); |
59 | $author = preg_replace( '|(.+?):.+|s', '$1', $item['title'] ); |
60 | $post = preg_replace( '|.+?:(.+)|s', '$1', $item['title'] ); |
61 | ?> |
62 | <li><a href='<?php echo wp_filter_kses($item['link']); ?>'><span class="post"><?php echo $post; ?></span><span class="hidden"> - </span><cite><?php echo $author; ?></cite></a></li> |
63 | <?php |
64 | } |
65 | ?> |
66 | </ul> |
67 | <p class="readmore"><a href="<?php echo apply_filters( 'dashboard_secondary_link', 'http://planet.wordpress.org/' ); ?>"><?php _e('Read more »'); ?></a></p> |
68 | <?php |
69 | } |
70 | break; |
71 | } |
72 |
|
73 | ?> |