Tribe_Events::week_view_hide_weekends( mixed $value, string $option_name )

Hide weekends on shortcode.


Parameters

$value

(mixed) (Required) The value for the option.

$option_name

(string) (Required) The name of the option.


Top ↑

Return

(mixed) The value for the option.


Top ↑

Source

File: src/Tribe/Views/V2/Shortcodes/Tribe_Events.php

	public function week_view_hide_weekends( $value, $optionName ) {
		if ( 'week_view_hide_weekends' !== $optionName ) {
			return $value;
		}

		return true;
	}

Top ↑

Changelog

Changelog
Version Description
5.6.0 Introduced.