Skip to content

Instantly share code, notes, and snippets.

@finalwebsites
Last active October 5, 2022 07:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save finalwebsites/1e0b7b89a2817b8155d11df4fe12207b to your computer and use it in GitHub Desktop.
Save finalwebsites/1e0b7b89a2817b8155d11df4fe12207b to your computer and use it in GitHub Desktop.
WordPress - remove the comment author URL field
<?php
// add this code snippet to your child theme's functions.php file
add_filter('comment_form_default_fields', 'fw_remove_comment_author_url');
function fw_remove_comment_author_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