Created
March 30, 2017 00:28
-
-
Save elimn/6fa10ca3365f8e332103c1ff62197803 to your computer and use it in GitHub Desktop.
MT | TEC | Hide the address line on archive views
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
<?php | |
/** | |
* Hides the address line on archive views | |
*/ | |
function tribe_hide_full_address_archive() { | |
if ( is_main_query() && ! is_single() ) { | |
add_filter( 'tribe_get_full_address', '__return_empty_string' ); | |
} | |
} | |
add_action( 'wp', 'tribe_hide_full_address_archive' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment