Add new filter to disable block editor for CPT

This commit is contained in:
Brian Miyaji
2018-12-12 16:40:43 +11:00
parent 726945eb99
commit 99f2c2003a

View File

@@ -29,6 +29,7 @@ class SportsPress_Gutenberg {
$this->define_constants(); $this->define_constants();
add_filter( 'gutenberg_can_edit_post_type', array( $this, 'can_edit_post_type' ), 10, 2 ); add_filter( 'gutenberg_can_edit_post_type', array( $this, 'can_edit_post_type' ), 10, 2 );
add_filter( 'use_block_editor_for_post_type', array( $this, 'can_edit_post_type' ), 10, 2 );
} }
/** /**