wordpress snippets

Remove the URL Field From the Comments in WordPress

Last modified: August 27, 2018

function ScanWP_disable_comment_url($fields) {
    unset($fields['url']);
    return $fields;
}
add_filter('comment_form_default_fields','ScanWP_disable_comment_url');

Add the above to your functions file and the URL field will cease to exist in the built-in WordPress comment forms which could remove a whole lot of spam. Read more about antispam plugins.

Save 4 Later
Email these links to yourself