Hooks::alter_shortcode_countdown_widget_class( string $widget_class, TribeEventsProViewsV2Widgetsarray $arguments )
Swaps in the new Countdown 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_shortcode_countdown_widget_class( $widget_class, $arguments ) {
return Widget_Countdown::class;
}
Changelog
| Version | Description |
|---|---|
| 5.5.0 | Moved from Service_Provider class to the Hooks class. |
| 5.3.0 | Introduced. |