Last active
July 26, 2017 15:18
-
-
Save tdtgit/92aec02bfea274a3e0fb51d6033e42af to your computer and use it in GitHub Desktop.
Disable WordPress comment URL field
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
// Above code... | |
function wp_disable_comment_url($fields) { | |
unset($fields['url']); | |
return $fields; | |
} | |
add_filter('comment_form_default_fields', 'wp_disable_comment_url'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment