Horje
How to Add Spam and Delete Links to Comments on Front End

This makes it way easier to manage comments from the front end by adding spam and delete links.**


Add Spam and Delete Links to Comments on Front End

Just copy and past following codes to yourdomain.com/wp-content/themes/activated-theme/fucntions.php in the most below.
Example: PHP
// Spam & delete links for all versions of WordPress
function delete_comment_link($id) {
    if (current_user_can('edit_post')) {
        echo '| <a href="'.get_bloginfo('wpurl').'/wp-admin/comment.php?action=cdc&c='.$id.'">del</a> ';
        echo '| <a href="'.get_bloginfo('wpurl').'/wp-admin/comment.php?action=cdc&dt=spam&c='.$id.'">spam</a>';
    }
}





Category:
Web Tutorial
Sub Category:
Wordpress Security Shortcode
Uploaded by:
Admin