Skip to content

Instantly share code, notes, and snippets.

@Pebblo

Pebblo/example.php Secret

Created Dec 20, 2018
Embed
What would you like to do?
Example of how to add text to the datetime list.
<?php //Please od not include the opening PHP tag if you already have one.
add_filter(
'FHEE__espresso_list_of_event_dates__datetime_html',
'add_text_after_datetime_list',
20,
2
);
function add_text_after_datetime_list( $html, $datetime ) {
$html .= '<br><span class="ee-datetimes-timezone">';
$html .= 'Pacifict Standard Time (PST)';
$html .= '</span>';
return $html;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment