SHARE
TWEET

Wordpress Custom Comment Markup

a guest Sep 17th, 2012 618 Never
  1. //Custom markup for Comments
  2. function my_custom_comments($comment, $args, $depth) {
  3.    $GLOBALS['comment'] = $comment;
  4.    echo '<li '; comment_class(); echo '>';
  5.    
  6.    if ($comment->comment_approved == '0') :
  7.       echo '<em>' . _e('Your comment is awaiting moderation.') . '</em>';
  8.    endif;
  9.     //Start Custom Markup
  10.         comment_text();
  11.    //End Custom Markup 
  12. }
RAW Paste Data
Top