• Uncategorized
  • 1

WordPress Function for Add Spam & 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.**

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

You may also like...

1 Response

  1. Add to your WordPress maintenance list regularly scheduled visits to your site’s statistic logs to check on reports of 404 errors on your site, and take time to run a links check on your external, and internal, links to make sure everything is still connected. Dependent upon the site and number of links on your site, you should check your site for dead links every six months to a year.

Leave a Reply

Your email address will not be published. Required fields are marked *