disable

A list of WordPress features to enable.

Usage

KeyTypeRequiredDefault
"disable"arrayNo[]

Where "disable" is an array of strings selected from the options below.

Options

KeyDescription
"editor"Disables WordPress’s editor on the admin page. Helpful if you don’t want people breaking your theme.
"customizer"If you aren’t enabling fields in the admin customizer, you might as well remove the link and functionality.
"gutenberg"This will take you back to the standard WYSIWYG editor instead of the new block editor. Helpful for strict site designs.

Example

config.php
return [
...
"disable" => ["editor", "customizer", "gutenberg"],
...
]
Disabling the WordPress editor