tribe_get_listview_link( int|null $term = null )
Returns a link to the general or category upcoming view.
Contents
Parameters
- $term
-
(int|null) (Optional) Event category ID to link to.
Default value: null
Return
(string) The URL of the list view.
Source
File: src/functions/template-tags/link.php
function tribe_get_listview_link( $term = null ) {
$tribe_ecp = Tribe__Events__Main::instance();
$output = $tribe_ecp->getLink( 'list', false, $term );
return apply_filters( 'tribe_get_listview_link', $output );
}
Changelog
| Version | Description |
|---|---|
| 2.0.1 | Introduced. |