WP_Customize_Widgets::count_captured_options()protectedWP 3.9.0

Retrieves the number of captured widget option updates.

Метод класса: WP_Customize_Widgets{}

Хуков нет.

Возвращает

int. Number of updated options.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->count_captured_options();

Список изменений

С версии 3.9.0 Введена.

Код WP_Customize_Widgets::count_captured_options() WP 6.5.2

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