brooklyndesignstudio

Disable Website Field In Native Comments Module

Aug 3rd, 2020
1,984
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*************************************************************************
  2. ************ [ DISABLE WEBSITE FIELD IN COMMENTS MODULE ] ***************
  3.  
  4. function ds_customize_divi_comments_url_field ($fields) {
  5.   // Remove the website url field
  6.   if(isset($fields['url']))
  7.     unset($fields['url']);
  8.  
  9.   return $fields;
  10. }
  11.  
  12. add_filter('comment_form_default_fields', 'ds_customize_divi_comments_url_field');
RAW Paste Data