is_wide_widget_in_customizer хук-фильтр . WP 3.9.0
Filters whether the given widget is considered "wide".
Использование
add_filter( 'is_wide_widget_in_customizer', 'filter_function_name_7573', 10, 2 ); function filter_function_name_7573( $is_wide, $widget_id ){ // filter... return $is_wide; }
- $is_wide(true|false)
- Whether the widget is wide, Default false.
- $widget_id(строка)
- Widget ID.
Список изменений
С версии 3.9.0 | Введена. |
Где вызывается хук
is_wide_widget_in_customizer
wp-includes/class-wp-customize-widgets.php 589
return apply_filters( 'is_wide_widget_in_customizer', $is_wide, $widget_id );