Created
March 26, 2015 16:19
-
-
Save geoffgraham/2b36f8cb704ea8b7144f to your computer and use it in GitHub Desktop.
Events Calendar 3.9.1 // Remove Unnamed Venues and links
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Removes all instances of "Unnamed Venues" and their links | |
add_filter( 'tribe_get_venue', 'hide_unnamed_venues_from_meta' ); | |
function hide_unnamed_venues_from_meta( $html ) { | |
if ( false !== strpos( $html, 'Unnamed Venue' ) ) return ''; | |
return strip_tags( $html ); // Don't link to the venue | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment