Updating options of a widget with own tool

I am writing a tool to update the options of a self-created widget outside the backend "Appearance – Widgets" page. These are simple yes/no options in the widget.

It seems to work as I am using get_option(optionName) and update_option(optionName, optionValue) but I am confused.

Here is a display of a portion of the options table in WP.

Text

I can perfectly fetch and update the gcs_xxxx parameters but what is this "widget_golf_course_status" option record? It seems it doesn’t have any effect on the output/visualisation of the widget.

When I update the widget options through APPEARANCE – WIDGETS

  • widget_golf_course_status is updated with new values
  • the gcs_xxxx parameters are updated to correct values

When I update the widget options through my own tool (custom page) with get_option() and update_option()

  • widget_golf_course_status record is NOT updated with new values
  • the gcs_xxxx parameters are updated to correct values

Anyway the output looks OK in both cases.

Questions

  1. Do I need to update the widget_golf_course_status when updating options with my own tool? It seems to have no effect on output if it’s not in sync with gcs_xxx options.
  2. Why is this needed? What is it used for?
  3. Do I better just work on ‘widget_golf_course_status’ record and it will auto-update the other records?