Shortcode::filter_include_hidden_from_upcoming( array $repository_args, Tribe__Context $context, TribeEventsViewsV2View_Interface $repository )

Filters the repository args to include all events that were hidden using the Hide From Upcoming meta setting.

Parameters #


(array) (Required) An array of repository arguments that will be set for all Views.


(Tribe__Context) (Required) The current render context object.


(TribeEventsViewsV2View_Interface) (Required) The View that will use the repository arguments.

Top ↑

Return #

(array) Repository arguments after modifying the hidden from upcoming.

Top ↑

Source #

File: src/Tribe/Admin/Manager/Shortcode.php

	public function filter_include_hidden_from_upcoming( $repository_args, Context $context, View_Interface $repository ) {
		if ( ! isset( $repository_args['hidden_from_upcoming'] ) ) {
			return $repository_args;

		// Removing means all events will show regardless of status.
		unset( $repository_args['hidden_from_upcoming'] );

		return $repository_args;

Top ↑

Changelog #

Version Description
4.15.1 Introduced.