Widget_View::get_compatibility_classes()

Adds compatibility classes to the widget view container.

Not the view itself – the wrapping div around that


Return

(TribeEventsViewsV2ViewsWidgetsarray<string>) An Array of class names to add to the container. Will contain *at least* 'tribe-compatibility-container' as an indicator.


Top ↑

Source

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

	public function get_compatibility_classes() {
		$classes = Theme_Compatibility::get_container_classes();

		/**
		 * Filters the HTML classes applied to a widget top-level container.
		 *
		 * @since 5.3.0
		 *
		 * @param array  $html_classes Array of classes used for this widget.
		 * @param string $view_slug    The current widget slug.
		 * @param View   $instance     The current View object.
		 */
		$classes = apply_filters( 'tribe_events_views_v2_widget_compatibility_classes', $classes, $this->get_slug(), $this );

		/**
		 * Filters the HTML classes applied to a specific widget top-level container.
		 *
		 * @since 5.3.0
		 *
		 * @param array $classes Array of classes used for this widget.
		 * @param View  $instance     The current View object.
		 */
		$classes = apply_filters( "tribe_events_views_v2_{$this->get_slug()}_widget_compatibility_classes", $classes, $this );

		return $classes;
	}

Top ↑

Changelog

Changelog
Version Description
5.4.0 Introduced.