true )); $remove = array_search( 'attachment', $post_types ); if ( $remove ) unset( $post_types[$remove] ); $this->allowedPostType = $post_types; } } ?>