How to add Gutenberg to Learnpress
-
Hello and thank you for the great plugin
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; }
I am trying to use Gutenberg with your plugin but even after adding this code snippet it doesn’t work. I still see the default editor.
What can I do?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to add Gutenberg to Learnpress’ is closed to new replies.