cliff
3/1/2018 - 6:06 AM

The Events Calendar: Replace ">" with "in" at Event Category title pages.

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' );