Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: activity_box_end

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

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