On this page
apply_filters( 'widget_display_callback', array $instance, WP_Widget $widget, array $args )
Filters the settings for a particular widget instance.
Description
Returning false will effectively short-circuit display of the widget.
Parameters
$instancearray-
The current widget instance's settings.
$widgetWP_Widget-
The current widget instance.
$argsarray-
An array of default widget arguments.
Source
File: wp-includes/class-wp-widget.php. View all references
$instance = apply_filters( 'widget_display_callback', $instance, $this, $args );
Related
Used By
| Used By | Description |
|---|---|
| WP_Widget::display_callback() wp-includes/class-wp-widget.php | Generates the actual widget content (Do NOT override). |
| the_widget() wp-includes/widgets.php | Output an arbitrary widget as a template tag. |
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/widget_display_callback