settings = $settings; } public static function get_command_id() { return __CLASS__; } public function run() { $this->maybe_add_missing_setting(); return ! $this->settings->display_notices_setting_is_missing(); } public function run_ajax() { return false; } public function run_frontend() { return false; } private function maybe_add_missing_setting() { if ( $this->settings->display_notices_setting_is_missing() ) { $this->settings->create_display_notices_setting(); } } }