W3cubDocs

/WordPress

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

File: wp-admin/includes/class-wp-screen.php

View on Trac

Changelog

Version Description
4.4.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/view_mode_post_types