tribe_events_get_venue_website_title( null|int $post_id = null )
Get the link for the venue website.
Contents
Parameters
- $post_id
-
(null|int) (Optional) The event or venue ID.
Default value: null
Return
(string) Formatted title for the venue website link
Source
File: src/functions/template-tags/venue.php
function tribe_events_get_venue_website_title( $post_id = null ) {
$post_id = tribe_get_venue_id( $post_id );
/**
* Allows customization of a venue's website title link.
*
* @since 5.5.0
*
* @param string $title The title of the venue's website link.
* @param int $post_id The venue ID.
*/
return apply_filters( 'tribe_events_get_venue_website_title', __( 'Website:', 'the-events-calendar' ), $post_id );
}
Changelog
| Version | Description |
|---|---|
| 5.5.0 | Introduced. |