Skip to content

Instantly share code, notes, and snippets.

@Asikur22
Last active April 10, 2019 16:51
Show Gist options
  • Save Asikur22/78a8f39d3812798d52873dfd6ece2e2a to your computer and use it in GitHub Desktop.
Save Asikur22/78a8f39d3812798d52873dfd6ece2e2a to your computer and use it in GitHub Desktop.
[Remove Website Field for WordPress Comment Form]
/*
* Remove Website Field for Comment form
*/
function ar_comment_website_remove( $fields ) {
if ( isset( $fields['url'] ) ) {
unset( $fields['url'] );
}
return $fields;
}
add_filter( 'comment_form_default_fields', 'ar_comment_website_remove' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment