WordPress.org

Ready to get started?Download WordPress

Forums

Stats code in wp-admin/index.php (1 post)

  1. diabolus
    Member
    Posted 6 years ago #

    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 ?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.