Posted By

muydelpalo on 11/25/14


Tagged

functionsphp


Versions (?)

spam & delete links for comments


 / Published in: PHP
 

Wordpress

  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  

You need to login to post a comment.