Widget_Abstract::no_widget_search( TribeEventsViewsV2Widgetsarray $repository_args )

Remove search terms from the widget repository args.


Parameters #

$repository_args

(<span class="TribeEventsViewsV2Widgetsarray">TribeEventsViewsV2Widgetsarray) (Required) The arguments for the widget events query.


Top ↑

Return #

(TribeEventsViewsV2Widgetsarray<string,mixed>) $repository_args The modified args.


Top ↑

Source #

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

	public function no_widget_search( $repository_args ) {
		// Sanity check.
		if ( self::is_widget_in_use() ) {
			unset( $repository_args['search'] );
		}

		return $repository_args;
	}

Top ↑

Changelog #

Changelog
Version Description
5.16.2 Introduced.