true, 'admin_page' => [ 'parent' => 'options', 'render' => 'settings-page', // built-in settings page 'plugin_info' => true, 'settings' => [ 'option_name' => 'notice_manager', // option_name used in wp_options table 'sections' => [ [ 'id' => 'notice_manager', // 'title' => 'N', 'description' => 'Setup How notice manager functions.', 'fields' => [ [ 'id' => 'above_title', 'title' => 'Above Title', 'type' => 'checkbox', 'description' => 'Move all notices above title. (WordPress core moves notices below title using script.)', ], [ 'id' => 'screen_panel', 'title' => 'Notices Panel', 'type' => 'checkbox', 'description' => 'Enable\disable screen-meta-links \'Notices\' panel.', ], [ 'id' => 'auto_collect', 'title' => 'Auto-Collect Notices', 'type' => 'checkbox', 'description' => 'Automatic collection of notices into panel.', ], [ 'id' => 'auto_collapse', 'title' => 'Auto-collapse Panel', 'type' => 'checkbox', 'description' => 'Notices panel will stay open for a few seconds on page load, and then close automatically.', ], ] ] ] ] ] ] ); require_once 'src/NoticeManager.php'; add_action('plugins_loaded', function(){ new NoticeManager(); });