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 |
---|---|
106 | $post_str = sprintf(__ngettext('%1$s <a href="%2$s" title="Posts">post</a>', '%1$s <a href="%2$s" title="Posts">posts</a>', $numposts), number_format_i18n($numposts), 'edit.php'); |
107 | $comm_str = sprintf(__ngettext('%1$s <a href="%2$s" title="Comments">comment</a>', '%1$s <a href="%2$s" title="Comments">comments</a>', $numcomms), number_format_i18n($numcomms), 'edit-comments.php'); |
108 | $cat_str = sprintf(__ngettext('%1$s <a href="%2$s" title="Categories">category</a>', '%1$s <a href="%2$s" title="Categories">categories</a>', $numcats), number_format_i18n($numcats), 'categories.php'); |
109 | $tag_str = sprintf(__ngettext('%1$s tag', '%1$s tags', $numtags), number_format_i18n($numtags)); |
110 | ?> |
111 |
|
112 | <p><?php printf(__('There are currently %1$s and %2$s, contained within %3$s and %4$s.'), $post_str, $comm_str, $cat_str, $tag_str); ?></p> |
113 | </div> |
114 |
|
115 | <?php do_action('activity_box_end'); ?> |
116 | </div> |
117 |
|
118 | <p><?php _e('Use these links to get started:'); ?></p> |
119 |
|
120 | <ul> |
121 | <?php if ( current_user_can('edit_posts') ) : ?> |
122 | <li><a href="post-new.php"><?php _e('Write a post'); ?></a></li> |
123 | <?php endif; ?> |
124 | <li><a href="profile.php"><?php _e('Update your profile or change your password'); ?></a></li> |