Skip to content

Instantly share code, notes, and snippets.

@Pebblo
Created December 20, 2018 12:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pebblo/fae7eb5a8869bb11b703ad72c3eb2e1f to your computer and use it in GitHub Desktop.
Save Pebblo/fae7eb5a8869bb11b703ad72c3eb2e1f to your computer and use it in GitHub Desktop.
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