Skip to content

Instantly share code, notes, and snippets.

@ibrahimmumcu
Created January 1, 2021 15:55
Show Gist options
  • Save ibrahimmumcu/bb5309788237bfc059536abbe8a7cecc to your computer and use it in GitHub Desktop.
Save ibrahimmumcu/bb5309788237bfc059536abbe8a7cecc to your computer and use it in GitHub Desktop.
Woocommerce - Remove "url" input from comment from
<?php
/*
* Remove "url" input from comment from
*/
add_filter('comment_form_default_fields', 'unset_url_field');
function unset_url_field($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