eo_is_event_archive
since 1.7
eo_is_event_archive( $type = false )
Whether an event archive is being viewed
By specifying the type of archive ( e.g. 'day', 'month' or 'year'), we can check if its
a day, month or year archive. By default, it will just return is_post_type_archive('event')
You can get the date of the archive via eo_get_event_archive_date()
Parameters
string
|
$type = false |
The type archive. 'day', 'month', or 'year'
|
Return value
bool
|
Whether an event archive is being viewed, where type is specified, if its an event archive of that type.
|
Changelog