WP_Widget::save_settings

Advertisement

Summery Summery

Saves the settings for all instances of the widget class.

Syntax Syntax

WP_Widget::save_settings( array $settings )

Parameters Parameters

$settings

(Required) Multi-dimensional array of widget instance settings.

Source Source

File: wp-includes/class-wp-widget.php

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

Advertisement

Changelog Changelog

Changelog
Version Description
2.8.0 Introduced.

Advertisement

Leave a Reply