|
|
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>';
}
}Category: | Web Tutorial |
Sub Category: | Wordpress Security Shortcode |
Uploaded by: | Admin |