Hooks::alter_list_widget_class( string $widget_class, TribeEventsProViewsV2Widgetsarray $arguments )

Swaps in the new V2 widget for the old one in the widget shortcode.


Parameters

$widget_class

(string) (Required) The widget class name we're currently implementing.

$arguments

(<span class="TribeEventsProViewsV2Widgetsarray">TribeEventsProViewsV2Widgetsarray) (Required) The widget arguments.


Top ↑

Return

(string) $widget_class The modified (V2) widget class name we want to implement.


Top ↑

Source

File: src/Tribe/Views/V2/Widgets/Hooks.php

	public function alter_list_widget_class( $widget_class, $arguments ) {
		return Widget_List::class;
	}

Top ↑

Changelog

Changelog
Version Description
5.5.0 Moved from Service_Provider class to the Hooks class.
5.3.0 renamed to indicate this is specific to the List Widget.
5.2.0 Introduced.