I need to disable the gutenberg editor on the edit screen of certain pages.
I know how to disable it for post types, like all pages:
/************************************************************ */
/* Disable Gutenberg for post type */
add_filter('use_block_editor_for_post_type', 'prefix_disable_gutenberg', 10, 2);
function prefix_disable_gutenberg($current_status, $post_type)
{
if ( $post_type == 'page' ) return false;
return $current_status;
}
But I only want to disable it for a page, let's say with the ID of "1716".
How can I disable the gutenberg editor for certain page IDs programmatically?