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 'update_control'; } /** * {@inheritDoc} */ public function register(): void { $settings = aiou()->settings(); $settings->add_section( 'performance', 'updates', __( 'Updates', 'all-in-one-utilities' ), '', 90 ); $settings->add_field( 'performance', 'updates', new Field( id: 'disable_update_checks', label: __( 'Disable update checking', 'all-in-one-utilities' ), type: 'checkbox', default: 0, args: array( 'toggle_label' => __( 'Stop WordPress from checking for core, plugin, and theme updates, and hide the related admin nags', 'all-in-one-utilities' ) ), doc: new Doc( title: __( 'Disable update checking', 'all-in-one-utilities' ), detailed: __( 'Useful on a site managed entirely through deployment (updates applied outside wp-admin) where the update nags and background version-check requests are pure noise. This does not affect this plugin\'s own update-notification-email setting elsewhere.', 'all-in-one-utilities' ), warnings: array( __( 'Your site will no longer be told about security updates through wp-admin. Only enable this if updates are genuinely managed another way.', 'all-in-one-utilities' ) ) ), priority: 10 ) ); ( new Feature() )->register(); } }