WP_Customize_Widgets::get_captured_option( string $option_name, mixed $default = false )
Retrieves the option that was captured from being saved.
Parameters
- $option_name
 -  
(string) (Required) Option name.
 - $default
 -  
(mixed) (Optional) Default value to return if the option does not exist.
Default value: false
 
Return
(mixed) Value set for the option.
Source
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;
	}  Changelog
| Version | Description | 
|---|---|
| 4.2.0 | Introduced. | 
    © 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
    https://developer.wordpress.org/reference/classes/wp_customize_widgets/get_captured_option