Advertisement
BakerMan

Use unorthodox date format in minical title

Sep 10th, 2013
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.44 KB | None | 0 0
  1. // We might use this approach if a standard PHP date format doesn't
  2. // quite match what we want. Example: "Sept" for September (neither
  3. // "F" or "M"  formats get us there).
  4.  
  5. // Change the mini cal title
  6. add_filter('tribe_events_the_mini_calendar_title', 'change_minical_title_month_format');
  7.  
  8. // Look for "Sep" and change it to "Sept"
  9. function change_minical_title_month_format($title) {
  10.     return str_replace('Sep', 'Sept', $title);
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement