original_string: public function override($post_type, $post){
          if( $this->is_valid_post_type($post_type) ){
              foreach( $this->fields as $name => $vars ){
                  switch( $name ){
                      case 'excerpt':
                          remove_meta_box('postexcerpt', $post_type, 'normal');
                          break;
                      case 'post_format':
                          remove_meta_box('formatdiv', $post_type, 'side');
                          break;
                      default:
                          if( false !== array_search(Taxonomy::class, class_uses($vars['class'])) ){
                              if( taxonomy_exists($name) ){
                                  if( is_taxonomy_hierarchical($name) ){
                                      $box_id = $name.'div';
                                  }else{
                                      $box_id = 'tagsdiv-'.$name;
                                  }
                                  remove_meta_box($box_id, $post_type, 'side');
                              }
                          }else{
                              // Do nothing
                          }
                          break;
                  }
              }
          }
      }
code: public function override($post_type, $post){
          if( $this->is_valid_post_type($post_type) ){
              foreach( $this->fields as $name => $vars ){
                  switch( $name ){
                      case 'excerpt':
                          remove_meta_box('postexcerpt', $post_type, 'normal');
                          break;
                      case 'post_format':
                          remove_meta_box('formatdiv', $post_type, 'side');
                          break;
                      default:
                          if( false !== array_search(Taxonomy::class, class_uses($vars['class'])) ){
                              if( taxonomy_exists($name) ){
                                  if( is_taxonomy_hierarchical($name) ){
                                      $box_id = $name.'div';
                                  }else{
                                      $box_id = 'tagsdiv-'.$name;
                                  }
                                  remove_meta_box($box_id, $post_type, 'side');
                              }
                          }else{
                              // Do nothing
                          }
                          break;
                  }
              }
          }
      }
code_tokens: public function override ( $ post_type , $ post ) { if ( $ this -> is_valid_post_type ( $ post_type ) ) { foreach ( $ this -> fields as $ name => $ vars ) { switch ( $ name ) { case 'excerpt' : remove_meta_box ( 'postexcerpt' , $ post_type , 'normal' ) ; break ; case 'post_format' : remove_meta_box ( 'formatdiv' , $ post_type , 'side' ) ; break ; default : if ( false !== array_search ( Taxonomy :: class , class_uses ( $ vars [ 'class' ] ) ) ) { if ( taxonomy_exists ( $ name ) ) { if ( is_taxonomy_hierarchical ( $ name ) ) { $ box_id = $ name . 'div' ; } else { $ box_id = 'tagsdiv-' . $ name ; } remove_meta_box ( $ box_id , $ post_type , 'side' ) ; } } else { // Do nothing } break ; } } } }
docstring: Override default meta box
  
  @param string $post_type
  @param \WP_Post $post
docstring_tokens: Override default meta box