tribe_get_phone( int $postId = null )
Returns the venue phone number
Contents
Parameters
- $postId
-
(int) (Optional) Either event id or venue id, if none specified, current post is used.
Default value: null
Return
(string) The escaped phone number for the venue.
Source
File: src/functions/template-tags/venue.php
function tribe_get_phone( $postId = null ) { $venue_id = tribe_get_venue_id( $postId ); $output = esc_html( tribe_get_event_meta( $venue_id, '_VenuePhone', true ) ); /** * Allows customization of a venue's phone number. * * @since ?? * @since 4.5.11 Added docblock and venue ID to filter * * @param bool $output Whether the venue's coordinates are overwritten or not. * @param int $venue_id The venue ID */ return apply_filters( 'tribe_get_phone', $output, $venue_id ); }
Changelog
Version | Description |
---|---|
?? | Introduced. |