Unapprove/mark spam in comments template
-
Hi I’m trying to make it easier for site staff to mark comments as spam and delete them in the comments template. I’ve done the delete link:
<?php if ( current_user_can('edit_post', $comment->comment_post_ID) ) { $url = clean_url(wp_nonce_url( "/wp-admin/comment.php?action=deletecomment&p=$comment->comment_post_ID&c=$comment->comment_ID", "delete-comment_$comment->comment_ID" )); echo "<a href='$url' class='delete:the-comment-list:comment-$comment->comment_ID delete'>" . __('(Delete)') . "</a> "; } ?>
But I can’t work out the Spam link/unapprove
Any ideas?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Unapprove/mark spam in comments template’ is closed to new replies.