• vandung93

    (@vandung93)


    Hello there,
    Could you make learnpress plugin compatible with gutenberg editor, please?
    As you know gutenberg editor is the favorite editor for many users.
    It will be nice if it can work with learnpress together.

    I using this code to enable gutenberg editor for course & lesson. It’s working but Curriculum box is hidden.

    add_filter( 'register_post_type_args','add_gutenberg_support', 10, 2 );
    function add_gutenberg_support( $args, $post_type ) {
        if ( in_array( $post_type, [ 'lp_course', 'lp_lesson', ] ) ) {
            $args['show_in_rest'] = true;
        }
    
        return $args;
    }

    Before enable gutenberg:
    https://prntscr.com/pzxr4l
    After enable gutenberg:
    https://prntscr.com/pzxry8

    Thanks for your support!

Viewing 5 replies - 1 through 5 (of 5 total)
  • hadam

    (@hadam3003)

    Hi vandung93,

    Thank for the reminder.

    We’re finding a solution for this error when compatible Learnpress and Gutenburg and will release it asap.

    Hello Ken,

    I have the same issue as vandung93 – the Curriculum section is missing in the Edit Course interface when using Gutenberg.

    Do you have any update on this issue?

    Just to add support to this request – it is a huge hurdle. Gutenberg and Elementor allow for MUCH more efficient content creation and layouting. It would be great if support could be added soon. Thank you for all the work!

    O código do @vandung93 funciona, mas sem o currículo. Alguém poderia dar uma ajuda para fazer o trecho de código mostrar o currículo do curso?

    With this little edit, courses will use Default Editor, but lessons will use Gutenberg.

    add_filter( 'register_post_type_args','add_gutenberg_support', 10, 2 );
    function add_gutenberg_support( $args, $post_type ) {
        if ( in_array( $post_type, ['lp_lesson', ] ) ) {
            $args['show_in_rest'] = true;
        }
    
        return $args;
    }
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Gutenberg & Learnpress’ is closed to new replies.