On this page
WP_Widget::save_settings( array $settings )
Saves the settings for all instances of the widget class.
Parameters
$settingsarray Required-
Multi-dimensional array of widget instance settings.
Source
File: wp-includes/class-wp-widget.php. View all references
public function save_settings( $settings ) {
$settings['_multiwidget'] = 1;
update_option( $this->option_name, $settings );
}
Related
Uses
| Uses | Description |
|---|---|
| update_option() wp-includes/option.php | Updates the value of an option that was already added. |
Used By
| Used By | Description |
|---|---|
| WP_Widget::update_callback() wp-includes/class-wp-widget.php | Handles changed settings (Do NOT override). |
| WP_Widget::get_settings() wp-includes/class-wp-widget.php | Retrieves the settings for all instances of the widget class. |
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_widget/save_settings