view_mode_post_types

view_mode_post_types

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('view_mode_post_types') is found 1 times:

  • /wp-admin/includes/class-wp-screen.php line 1317
    1313
    1314
    1315
    1316
    1317
    1318
    1319
    1320
    1321
    1322
    1323
    *
     * @param string[] $view_mode_post_types Array of post types that can change view modes.
     *                                       Default post types with show_ui on.
     */
    $view_mode_post_types = apply_filters( 'view_mode_post_types', $view_mode_post_types );
     
    if ( 'edit' === $screen->base && ! in_array( $this->post_type, $view_mode_post_types, true ) ) {
        return;
    }
     
    if ( ! isset( $mode ) ) {

See this hook used in plugins: