Hooks::filter_tribe_is_by_date( bool $is_by_date, $context )
Adds Week View to the list of date-based views.
Contents
Parameters
- $is_by_date
-
(bool) (Required) Is the current view a by-date-view?
Return
(bool)
Source
File: src/Tribe/Views/V2/Hooks.php
public function filter_tribe_is_by_date( $is_by_date, $context ): bool {
if ( Week_View::get_view_slug() === $context->get( 'view' ) ) {
$is_by_date = true;
}
return (bool) $is_by_date;
}
Changelog
| Version | Description |
|---|---|
| 6.0.2 | Introduced. |