Used By
| Used By | Description | 
|---|---|
| wp-includes/class-wp-customize-widgets.php: WP_Customize_Widgets::call_widget_update() | Finds and invokes the widget update and control callbacks. | 
Retrieves the option that was captured from being saved.
(string) (Required) Option name.
(mixed) (Optional) Default value to return if the option does not exist.
Default value: false
(mixed) Value set for the option.
File: wp-includes/class-wp-customize-widgets.php
protected function get_captured_option( $option_name, $default = false ) {
		if ( array_key_exists( $option_name, $this->_captured_options ) ) {
			$value = $this->_captured_options[ $option_name ];
		} else {
			$value = $default;
		}
		return $value;
	}  | Version | Description | 
|---|---|
| 4.2.0 | Introduced. | 
    © 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
    https://developer.wordpress.org/reference/classes/wp_customize_widgets/get_captured_option