Multiple entries in get_option results? or why is _multiwidget set to 1?

I found the answer.

Multiwidget is a nice new feature within wordpress’ new widget API. Yet there is sparse documentation on how to use it.

$options = get_option( 'your_option_id' );
if( isset($options) && isset($options[$this->number])) {
  //$this->number returns the unique widget id that corresponds to the database index
  $instance_options = $options[$this->number];
}
//now use $instance_options['setting']

Leave a Comment