wpseek.com
A WordPress-centric search engine for devs and theme authors



view_mode_post_types › WordPress Filter Hooks

Since4.4.0
Deprecatedn/a
apply_filters( 'view_mode_post_types', $view_mode_post_types )
Parameters:
  • (string[]) $view_mode_post_types Array of post types that can change view modes. Default post types with show_ui on.
    Required: Yes
Defined at:
Codex:

Filters the post types that have different view mode options.





Source

$view_mode_post_types = apply_filters( 'view_mode_post_types', $view_mode_post_types );