Whether the current widget is rendered on the page.
(bool) Whether the widget is rendered.
File: wp-includes/customize/class-wp-widget-form-customize-control.php
public function active_callback() { return $this->manager->widgets->is_widget_rendered( $this->widget_id ); }
Version | Description |
---|---|
4.0.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_widget_form_customize_control/active_callback