Performance * tab (owned by the Disable Unnecessary Features module) -- this module * must therefore boot after that one; see `ModuleManager::built_in_modules()`. */ final class Module implements ModuleInterface { /** * {@inheritDoc} */ public function get_id(): string { return 'classic_editor'; } /** * {@inheritDoc} */ public function register(): void { $settings = aiou()->settings(); $settings->add_section( 'performance', 'editor', __( 'Editor', 'all-in-one-utilities' ), '', 80 ); $settings->add_field( 'performance', 'editor', new Field( id: 'classic_editor', label: __( 'Use the classic editor', 'all-in-one-utilities' ), type: 'checkbox', default: 0, args: array( 'toggle_label' => __( 'Replace the block editor with the classic (TinyMCE) editor for posts, pages, and widgets', 'all-in-one-utilities' ) ), priority: 10 ) ); ( new Feature() )->register(); } }