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 – 170

this 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);


that would be awesome 🙂

thanks, greetings
& keep up the good work!


This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Your Advertisement Here