Skip to content

Commit 817ce32

Browse files
authored
Merge pull request #30 from justcoded/feature/disable-gutenberg-example
An example of disabling Gutenberg has been created for the specific post type
2 parents 50513e8 + 2120842 commit 817ce32

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

app/Theme.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,18 @@ class Theme extends \JustCoded\WP\Framework\Theme {
5959
'video',
6060
);
6161

62+
/**
63+
* Disable gutenberg for posts and custom post type.
64+
*
65+
* Set TRUE to disable it totally.
66+
* Set ARRAY to disable only specific ones.
67+
*
68+
* @var array|bool $disable_gutenberg
69+
*/
70+
public $disable_gutenberg = array(
71+
'page',
72+
);
73+
6274
/**
6375
* Additional classes initialize
6476
*/

0 commit comments

Comments
 (0)