Last active
November 4, 2019 05:58
-
-
Save heyitsritesh/081de5f6f9a45c133cbea3e53fc5442a to your computer and use it in GitHub Desktop.
Remove URL Field From GeneratePress Comments Section | https://www.digitalkube.com/remove-url-field-from-generatepress-comments-section/
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
/* Remove URL Field From GeneratePress Comments Section */ | |
add_action( 'after_setup_theme', 'gp_add_comment_url_filter' ); | |
function gp_add_comment_url_filter() { | |
add_filter( 'comment_form_default_fields', 'gp_disable_comment_url', 20 ); | |
} | |
function gp_disable_comment_url($fields) { | |
unset($fields['url']); | |
return $fields; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment