Stats code in wp-admin/index.php
-
Hi….
in the wp-admin/index.php there’s :
<?php if ( $comments ) { foreach ($comments as $comment) { echo '<li>' . sprintf(__('%1$s on %2$s'), get_comment_author_link(), '<a href="'. get_permalink($comment->comment_post_ID) . '#comment-' . $comment->comment_ID . '">' . get_the_title($comment->comment_post_ID) . '</a>'); edit_comment_link(__("Edit"), ' <small>(', ')</small>'); echo '</li>';
that will become “Author” on “Post Title” in the dashoard’s latest comment section. i wanna know how to adding the comment date of each comment so that the output became: “Author” on “Post Title” at “date, month, year”. i’ve searched in the google and this forum, also in the php.net about sprintf, but can’t found the option. i also try to adding the comment_date in the the last line, but nothing happen ??
so, perhaps anybody here know ?
- The topic ‘Stats code in wp-admin/index.php’ is closed to new replies.