Tribe_Events::week_view_hide_weekends( mixed $value, string $option_name )
Hide weekends on shortcode.
Contents
Parameters
- $value
-
(mixed) (Required) The value for the option.
- $option_name
-
(string) (Required) The name of the option.
Return
(mixed) The value for the option.
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;
}
Changelog
| Version | Description |
|---|---|
| 5.6.0 | Introduced. |