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

apply_filters('view_mode_post_types') is found 1 times:

  • /wp-admin/includes/class-wp-screen.php line 1317
    		 *
    		 * @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: