Support » Fixing WordPress » Adding a “Delete comment” to comments section

  • When someone posts and I’m logged in admin and I view their comments, I want to add a delete comment option. Like this. Right now, Its:

    Comment by xxxxx � xxxxx @ xxx | Edit This

    Next to Edit This, I want a delete this or delete comment link. How would I do this? Thanks 🙂

Viewing 1 replies (of 1 total)
  • This should start you on your way to something usable:

    <?php get_currentuserinfo(); if ($user_level > 0) { ?>
    <a href="wp-admin/post.php?action=confirmdeletecomment&amp;noredir=false&amp;comment=<?php comment_ID(); ?>&amp;p=<?php the_ID(); ?>">Delete comment</a>
    <?php } ?>

Viewing 1 replies (of 1 total)
  • The topic ‘Adding a “Delete comment” to comments section’ is closed to new replies.