Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Hide Gutenberg only specific posts or pages
function disable_gutenberg_per_id( $classic ) {
global $post;
if ( 123 == $post->ID )
return false;
return $classic;
add_filter( 'gutenberg_can_edit_post_type', 'disable_gutenberg_per_id' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.