eventorganiser_venue_tooltip
(filter)
Filters the tooltip content for a venue.
Example
//Adds a link to the venue page to the tooltip
add_filter( 'eventorganiser_venue_tooltip', 'my_venue_tooltip_content_link_to_venue', 10, 2 );
function my_venue_tooltip_content_link_to_venue( $description, $venue_id ){
$description .= sprintf('
Visit the venue page!
', eo_get_venue_link($venue_id));
return $description;
}
Parameters
string
|
$tooltip_content |
The HTML content for the venue tooltip.
|
int
|
$venue_id |
The ID of the venue.
|
array
|
$args |
An array of map options. See documentation for eo_get_venue_map() .
|
Example Usage
add_filter( 'eventorganiser_venue_tooltip', 'my_callback_function', 10, 3 );
function my_callback_function( $tooltip_content, $venue_id, $args ){
//Change first value and return it
return $tooltip_content
};
Resources