post_type_default_rendering_mode

post_type_default_rendering_mode

Hook Type: filter

See hook in core

Displaying hooks found in version: gutenberg.19.9.0

apply_filters('post_type_default_rendering_mode') is found 1 times:

  • /lib/compat/wordpress-6.8/class-gutenberg-rest-post-types-controller-6-8.php line 36
    			 * @param string       $default_rendering_mode Default rendering mode for the post type.
    			 * @param WP_Post_Type $post_type              Post type name.
    			 * @return string Default rendering mode for the post type.
    			 */
    			$rendering_mode = apply_filters( 'post_type_default_rendering_mode', $item->default_rendering_mode, $item );
    
    			/**
    			 * Filters the block editor rendering mode for a specific post type.
    			 * Applied after the generic `post_type_default_rendering_mode` filter.
    			 *
    			 * The dynamic portion of the hook name, `$item->name`, refers to the post type slug.