Advertisement
Guest User

Wordpress Custom Comment Markup

a guest
Sep 17th, 2012
940
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.37 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement