Last active
July 6, 2023 14:06
-
-
Save mbrughi/19a4682ed07fd78b6424661721628bb0 to your computer and use it in GitHub Desktop.
Wordpress: Remove URL from comments.
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 Comments URL | |
* | |
*/ | |
add_filter('comment_form_default_fields', 'mb_remove_comments_url'); | |
function mb_remove_comments_url($fields){ | |
if(isset($fields['url'])) | |
unset($fields['url']); | |
return $fields; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment