WP_Widget::save_settings() WordPress Method
The WP_Widget::save_settings() method is used to save settings for a particular widget instance. This is typically done when the user modified the widget settings from the front-end.
WP_Widget::save_settings( array $settings ) #
Saves the settings for all instances of the widget class.
Parameters
- $settings
(array)(Required)Multi-dimensional array of widget instance settings.
Source
File: wp-includes/class-wp-widget.php
public function save_settings( $settings ) { $settings['_multiwidget'] = 1; update_option( $this->option_name, $settings ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |