Last active
April 11, 2019 07:05
-
-
Save WordPress-Handbuch/2706f29388682d971596e448b86860b7 to your computer and use it in GitHub Desktop.
Remove website field from WordPress' comment form through filter hook in functions.php
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
function wh_emove_url_from_comment_form( $fields ) { | |
unset( $fields['url'] ); | |
return $fields; | |
} | |
add_filter( 'comment_form_default_fields', 'wh_remove_url_from_comment_form' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment