Last active
April 10, 2019 16:51
-
-
Save Asikur22/78a8f39d3812798d52873dfd6ece2e2a to your computer and use it in GitHub Desktop.
[Remove Website Field for WordPress Comment Form]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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