view_mode_post_types хук-фильтр . WP 4.4.0
Filters the post types that have different view mode options.
Использование
add_filter( 'view_mode_post_types', 'filter_function_name_9430' ); function filter_function_name_9430( $view_mode_post_types ){ // filter... return $view_mode_post_types; }
- $view_mode_post_types(строка[])
- Array of post types that can change view modes.
По умолчанию: post types with show_ui on
Список изменений
С версии 4.4.0 | Введена. |
Где вызывается хук
view_mode_post_types
wp-admin/includes/class-wp-screen.php 1315
$view_mode_post_types = apply_filters( 'view_mode_post_types', $view_mode_post_types );