Skip to content

Instantly share code, notes, and snippets.

@MZAWeb
Created Aug 1, 2012
Embed
What would you like to do?
The Events Calendar: Change calendar HTML title
<?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