Skip to content

Instantly share code, notes, and snippets.

@braddalton
Last active December 15, 2015 10:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save braddalton/5246988 to your computer and use it in GitHub Desktop.
Save braddalton/5246988 to your computer and use it in GitHub Desktop.
add_filter( 'comment_form_default_fields', 'remove_comment_author_website_url_field' );
/**
* @author Brad Dalton - WP Sites
* @example http://wpsites.net/blogging/stop-comment-spam/
*/
function remove_comment_author_website_url_field( $fields ) {
if ( isset( $fields['url'] ) )
unset( $fields['url'] );
if ( isset( $fields['fields']['url'] ) )
unset( $fields['fields']['url'] );
return $fields;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment