is_wide_widget_in_customizer WordPress Filter Hook

The is_wide_widget_in_customizer hook fires when a widget is displayed in the Customizer. This hook allows you to determine whether a widget is being displayed in the "wide" Customizer widget area. The widget area is considered "wide" if it is at least 300px wide.

apply_filters( 'is_wide_widget_in_customizer', bool $is_wide, string $widget_id ) #

Filters whether the given widget is considered “wide”.


Parameters

$is_wide

(bool)Whether the widget is wide, Default false.

$widget_id

(string)Widget ID.


Top ↑

Source

File: wp-includes/class-wp-customize-widgets.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.9.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.

Show More