post_type_{$item->name}_default_rendering_mode
post_type_{$item->name}_default_rendering_mode
Appears in: gutenberg.19.8.0, gutenberg.19.9.0
Hook Type: filter
Displaying hooks found in version: gutenberg.19.9.0apply_filters('post_type_{$item->name}_default_rendering_mode') is found 1 times:
- /lib/compat/wordpress-6.8/class-gutenberg-rest-post-types-controller-6-8.php line 49
* @param string $default_rendering_mode Default rendering mode for the post type. * @param WP_Post_Type $post_type Post type object. * @return string Default rendering mode for the post type. */ $rendering_mode = apply_filters( "post_type_{$item->name}_default_rendering_mode", $rendering_mode, $item ); // Validate the filtered rendering mode. if ( ! in_array( $rendering_mode, gutenberg_post_type_rendering_modes(), true ) ) { $rendering_mode = 'post-only'; }