widget_display_callback WordPress Filter Hook

The widget_display_callback hook is used to modify the way a widget is displayed. This hook can be used to change the way a widget is displayed on a per-instance basis.

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.


Top ↑

Parameters

$instance

(array)The current widget instance's settings.

$widget

(WP_Widget)The current widget instance.

$args

(array)An array of default widget arguments.


Top ↑

Source

File: wp-includes/class-wp-widget.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.