Skip to content

Instantly share code, notes, and snippets.

@cliffordp
Created March 1, 2018 06:06
Show Gist options
  • Save cliffordp/6a5883ba21441b7d002cf034f741a6da to your computer and use it in GitHub Desktop.
Save cliffordp/6a5883ba21441b7d002cf034f741a6da to your computer and use it in GitHub Desktop.
The Events Calendar: Replace ">" with "in" at Event Category title pages.
<?php
/**
* The Events Calendar: Replace ">" with "in" at Event Category title pages.
*
* @see tribe_get_events_title()
*
* @link https://theeventscalendar.com/support/forums/topic/change-the-symbol-between-title-upcoming-events-and-category/
* @link https://gist.github.com/cliffordp/6a5883ba21441b7d002cf034f741a6da
*/
function cliff_replace_right_pointing_angle_quote_mark_with_in_text( $title ) {
$title = str_replace( '&#8250;', 'in', $title );
return $title;
}
add_filter ( 'tribe_get_events_title', 'cliff_replace_right_pointing_angle_quote_mark_with_in_text' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment