Skip to content

Instantly share code, notes, and snippets.

@kucrut
Last active February 20, 2018 02:23
Show Gist options
  • Save kucrut/6f74666165d8b11d63e7597f332d404f to your computer and use it in GitHub Desktop.
Save kucrut/6f74666165d8b11d63e7597f332d404f to your computer and use it in GitHub Desktop.
Gutenberg only for pages
<?php
add_filter( 'gutenberg_can_edit_post_type', function ( $can_edit, $post_type ) {
$can_edit = $post_type === 'page';
return $can_edit;
}, 99, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment