Remove URL From Comments

Supplemental 14 views
0
0 Flares 0 Flares ×

We all know whether we have spam protection or not, some spam still inevitably gets through. Even aside from spam, more often then not there are people wanting to promote their products & services on our blog comments. To just remove these URL’s from your comments (across the board) you can use this code snippet.

<?php //Remove URL field from comment form
function so_remove_comment_fields($fields) {
    unset($fields['url']);
    return $fields;
}
add_filter('comment_form_default_fields','so_remove_comment_fields');
Provided by: Piet Bos
Tagged with: ,
Posted in Wordpress

Discuss:

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

No Trackbacks.

Login

Register | Lost your password?
0 Flares Twitter 0 Facebook 0 Google+ 0 0 Flares ×