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>';
    }
}





Related Articles
How to Remove the WordPress Version Info for Security Wordpress Security Shortcode
How to Add Spam and Delete Links to Comments on Front End Wordpress Security Shortcode
How to Remove pings to your own blog Wordpress Security Shortcode
How to Enable GZIP output compression Wordpress Security Shortcode

Single Articles
Add Spam and Delete Links to Comments on Front EndWordpress Security Shortcode

Read Full:
Wordpress Security Shortcode
Category:
Web Tutorial
Sub Category:
Wordpress Security Shortcode
Uploaded by:
Admin
Views:
69
Tested on:
WordPress 3.0.1