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