Hooks::append_recurring_info_tooltip( string $schedule_details, int $event_id )
Filters the event schedule details to add the recurring information tooltip.
Contents
This is a controlled use of a filter we used on all event details rendering in v1, in v2 we only append that tooltip to single events view.
Parameters
- $schedule_details
-
(string) (Required) The schedule details HTML, as built so far.
- $event_id
-
(int) (Required) The event post ID.
Return
(string) The filtered schedule details HTML.
Source
File: src/Tribe/Views/V2/Hooks.php
public function append_recurring_info_tooltip( $schedule_details, $event_id ) {
if ( ! is_singular( TEC::POSTTYPE ) ) {
return $schedule_details;
}
return Plugin::instance()->append_recurring_info_tooltip( $schedule_details, $event_id );
}
Changelog
| Version | Description |
|---|---|
| 5.0.0 | Introduced. |