fahimmurshed

Remove website link in comments without layout to break

Oct 19th, 2021
708
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function remove_comment_website_field($fields) {
  2. unset($fields['url']);
  3. return $fields;
  4. }
  5.  
  6. add_action( 'after_setup_theme', 'fr_add_comment_url_filter' );
  7. function fr_add_comment_url_filter() {
  8. add_filter('comment_form_default_fields','remove_comment_website_field');
  9. }
RAW Paste Data