Advertisement
phpface

Untitled

Dec 2nd, 2015
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.42 KB | None | 0 0
  1. if( ! function_exists( 'videotube_remove_comment_form_default_fields' ) ){
  2.     /**
  3.      * @param unknown_type $fields
  4.      * @return unknown
  5.      */
  6.     function videotube_remove_comment_form_default_fields( $fields ) {
  7.         unset( $fields['author'] );
  8.         unset( $fields['email'] );
  9.         unset( $fields['url'] );
  10.         return $fields;
  11.     }
  12.     add_filter( 'comment_form_default_fields' , 'videotube_remove_comment_form_default_fields', 10, 1 );
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement