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.
Source
Changelog
Version | Description |
---|---|
3.9.0 | Introduced. |