Skip to content

Instantly share code, notes, and snippets.

@GeoffEW
Created May 5, 2017 01:42
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 GeoffEW/eabd55a204915d02c7e2edf8eb8cc270 to your computer and use it in GitHub Desktop.
Save GeoffEW/eabd55a204915d02c7e2edf8eb8cc270 to your computer and use it in GitHub Desktop.
Remove st, nd, rd from the date format in the week widget
<?php
/* Tribe, modify this week widget date format */
function tribe_modify_this_week_date_format ( ) {
return 'j';
}
add_filter( 'tribe_events_this_week_date_format', 'tribe_modify_this_week_date_format' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment