Last active
August 29, 2015 13:57
-
-
Save ckpicker/9368480 to your computer and use it in GitHub Desktop.
Events Calendar 3.4.1 // Remove End Time from Single Event Meta
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'tribe_event_meta_event_date', 'remove_end_time' ); | |
function remove_end_time( $html ) { | |
$date_pieces = explode(' - ', $html); | |
$html = $date_pieces[0] . '</abbr></dd>'; | |
return $html; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment