Browse Source

Remove Website for WP Comments

master
Chase Hall 1 month ago
parent
commit
3ec84e259a
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      NebulaHost-ClientThings/src/NebulaHost-ClientThings/NebulaHost-ClientThings.php

+ 10
- 0
NebulaHost-ClientThings/src/NebulaHost-ClientThings/NebulaHost-ClientThings.php View File

@ -51,4 +51,14 @@ function disable_plugin_deactivation( $actions, $plugin_file, $plugin_data, $con
define( 'DISALLOW_FILE_EDIT', true );
// Remove "Website" on WP Comments
// https://old.reddit.com/r/Wordpress/comments/i0mwgz/how_i_completely_nuked_all_comment_spam/
add_filter('comment_form_default_fields', 'unset_url_field');
function unset_url_field($fields){
if(isset($fields['url']))
unset($fields['url']);
return $fields;
}
?>

Loading…
Cancel
Save