Last active
August 16, 2018 14:23
-
-
Save edalis/9721629 to your computer and use it in GitHub Desktop.
WP Genesis: Remove URL Field Comment Form
This file contains 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
add_filter( 'genesis_comment_form_args', 'url_filtered' ); | |
add_filter( 'comment_form_default_fields', 'url_filtered' ); | |
function url_filtered( $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