WordPress at a glance
function is not described

WP_Customize_Widgets::count_captured_options() protected WP 3.9.0

Retrieves the number of captured widget option updates.

It's a method of the class: WP_Customize_Widgets{}

No Hooks.

Return

Int. Number of updated options.

Usage

// protected - for code of main (parent) or child class
$result = $this->count_captured_options();

Changelog

Since 3.9.0 Introduced.

Code of WP_Customize_Widgets::count_captured_options() WP 5.5.1

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