spam & delete links for comments


/ Published in: PHP
Save to your folder(s)

Wordpress


Copy this code and paste it in your HTML
  1. function delete_comment_link($id) {
  2. if (current_user_can('edit_post')) {
  3. echo '| <a href="'.get_bloginfo('wpurl').'/wp-admin/comment.php?action=cdc&c='.$id.'">borrar</a> ';
  4. echo '| <a href="'.get_bloginfo('wpurl').'/wp-admin/comment.php?action=cdc&dt=spam&c='.$id.'">spam</a>';
  5. }
  6. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.