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.


Top ↑

Source

File: wp-includes/class-wp-customize-widgets.php

	protected function count_captured_options() {
		return count( $this->_captured_options );
	}


Top ↑

Changelog

Changelog
VersionDescription
3.9.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More