Skip to content

Instantly share code, notes, and snippets.

@MZAWeb
Created August 1, 2012 19:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MZAWeb/3229874 to your computer and use it in GitHub Desktop.
Save MZAWeb/3229874 to your computer and use it in GitHub Desktop.
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