Hooks::alter_week_widget_class( string $widget_class, TribeEventsProViewsV2Widgetsarray $arguments )
Swaps in the new Featured Venue V2 widget for the old one in the widget shortcode.
Contents
Parameters
- $widget_class
-
(string) (Required) The widget class name we're currently implementing.
- $arguments
-
(<span class="TribeEventsProViewsV2Widgetsarray">TribeEventsProViewsV2Widgetsarray) (Required) The widget arguments.
Return
(string) $widget_class The modified (V2) widget class name we want to implement.
Source
File: src/Tribe/Views/V2/Widgets/Hooks.php
public function alter_week_widget_class( $widget_class, $arguments ) {
return Widget_Week::class;
}
Changelog
| Version | Description |
|---|---|
| 5.5.0 | Introduced. |