WP_Customize_Widgets::tally_rendered_widgets() WordPress Method
This method is used to tally the number of rendered widgets. It is used internally by WordPress.
WP_Customize_Widgets::tally_rendered_widgets( array $widget ) #
Tracks the widgets that were rendered.
Contents
Parameters
- $widget
(array)(Required)Rendered widget to tally.
Source
File: wp-includes/class-wp-customize-widgets.php
public function tally_rendered_widgets( $widget ) { $this->rendered_widgets[ $widget['id'] ] = true; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.9.0 | Introduced. |