This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Wordpress Custom Comment Markup

By: a guest on Sep 17th, 2012  |  syntax: PHP  |  size: 0.37 KB  |  views: 452  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. }
clone this paste RAW Paste Data