show_in_rest to enable gutenberg editor via functions.php
-
Hello there,
first, thanks a lot for your great plugin.
would it be possible to add argument
'show_in_rest' => true,
in /lib/classes/TSSProInit.php where you register the testimonial custom post type
in between lines 130 – 170this way users can enable the gutenberg editor via a short filter in functions.php
if ( ! function_exists( 'ww_activate_block_editor' ) ) : function ww_activate_block_editor($can_edit, $post_type){ if($post_type == 'testimonial'){ $can_edit = true; } return $can_edit; } add_filter('use_block_editor_for_post_type', 'ww_activate_block_editor', 10, 2); endif;
that would be awesome ??
thanks, greetings
& keep up the good work!
Becki
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘show_in_rest to enable gutenberg editor via functions.php’ is closed to new replies.