Created
October 14, 2020 12:46
-
-
Save paulgibbs/ed0d565ae5d96c8657dc64a9f22b399c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function pggh_post_type_filter( $use_block_editor, $post_type ) { | |
if ( 'page' === $post_type ) { | |
return false; | |
} | |
return $use_block_editor; | |
} | |
add_filter( 'use_block_editor_for_post_type', 'pggh_post_type_filter', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment