Created
March 1, 2018 06:06
-
-
Save cliffordp/6a5883ba21441b7d002cf034f741a6da to your computer and use it in GitHub Desktop.
The Events Calendar: Replace ">" with "in" at Event Category title pages.
This file contains hidden or 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
<?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( '›', '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