Technical Docs

Search Documentation

Function: tribe_get_event_link

Single Event Link

Located at src/functions/template-tags/link.php (Line: 314)

Description

Get link to a single event

Parameters summary

(WP_Post|int) $post_id Optional. WP Post that this affects
(bool) $full_link Optional. If true outputs a complete HTML <a> link, otherwise only the URL is output</a>

Return value summary

(string) Link to post or false if none found
(bool) Link to post or false if none found

Examples

string|bool tribe_get_event_link ( WP_Post|int $post_id = null, bool $full_link = false )