![]() |
This makes it way easier to manage comments from the front end by adding spam and delete links.** |
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>';
}
}
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 |
Add Spam and Delete Links to Comments on Front End | Wordpress 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 |