Created
August 1, 2012 19:12
-
-
Save MZAWeb/3229874 to your computer and use it in GitHub Desktop.
The Events Calendar: Change calendar HTML title
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
<?php | |
/* | |
* Parameters: | |
* $title: the original title (ie: Events for July, 2012) | |
* $separator: I believe it will be always null for this filter | |
* $date: The selected month in string format (ie: July, 2012) | |
*/ | |
function richard_modify_calendar_title( $title, $separator, $date ) { | |
$new_title = 'Here goes your custom title for the date: ' . $date; | |
return $new_title; | |
} | |
add_filter('tribe_month_grid_view_title', 'richard_modify_calendar_title', 10, 3); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment