WP_Customize_Widgets::count_captured_options() WordPress Method
The `WP_Customize_Widgets::count_captured_options()` method is used to count the number of captured widget options for a given widget context. This method is used internally by WordPress to keep track of changes made to widget settings via the Customizer.
WP_Customize_Widgets::count_captured_options() #
Retrieves the number of captured widget option updates.
Return
(int) Number of updated options.
Source
File: wp-includes/class-wp-customize-widgets.php
protected function count_captured_options() { return count( $this->_captured_options ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.9.0 | Introduced. |