view_mode_post_types WordPress Filter Hook
The view_mode_post_types Wordpress hook allows you to add custom post types to the view mode options in the post editor. This can be useful if you want to create a custom post type that can be viewed in different ways, such as a portfolio post type that can be viewed as a grid or a list.
apply_filters( 'view_mode_post_types',  string[] $view_mode_post_types  ) #
Filters the post types that have different view mode options.
Parameters
- $view_mode_post_types
- (string[])Array of post types that can change view modes. Default post types with show_ui on. 
Source
Changelog
| Version | Description | 
|---|---|
| 4.4.0 | Introduced. |