WP_Widget::save_settings()publicWP 2.8.0

Saves the settings for all instances of the widget class.

Method of the class: WP_Widget{}

No Hooks.

Return

null. Nothing (null).

Usage

$WP_Widget = new WP_Widget();
$WP_Widget->save_settings( $settings );
$settings(array) (required)
Multi-dimensional array of widget instance settings.

Changelog

Since 2.8.0 Introduced.

WP_Widget::save_settings() code WP 6.5.3

public function save_settings( $settings ) {
	$settings['_multiwidget'] = 1;
	update_option( $this->option_name, $settings );
}