Tribe__Events__Community__Main::amend_template_tooltip( $text, $tooltip, $field = null )
This method filters the tooltip for the tribeEventsTemplate setting to make it clear that it also impacts on Community Events output.
Contents
Parameters
- $text
-
(Required)
- $tooltip
-
(Required)
- $field
-
(Optional) = null (this may not provided when tribe_field_tooltip callbacks take place)
Default value: null
Return
(string)
Source
File: src/Tribe/Main.php
public function amend_template_tooltip( $text, $tooltip, $field = null ) { if ( null === $field || 'tribeEventsTemplate' !== $field->id ) { return $text; } $description = __( 'This template is also used for Community Events.', 'tribe-events-community' ); return str_replace( $tooltip, "$tooltip $description ", $text ); }