Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // If the WordPress date setting matches DATEONLYFORMAT, make the string more readable
- if ( get_option( 'date_format' ) == TribeDateUtils::DATEONLYFORMAT ) {
- /* If the event happens this year, no need to show the year, unless it ends on another year (multi-day) */
- if ( tribe_get_start_date( $event, false, 'Y' ) === date( 'Y' ) && tribe_get_end_date( $event, false, 'Y' ) === date( 'Y' ) ) {
- $format = 'F j';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement