Created
October 10, 2016 16:36
-
-
Save andrasguseo/3ab88ca57c70a6db3053f2d879534558 to your computer and use it in GitHub Desktop.
For Armin - Hide "Eintritt Frei" from event details in single event view
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 | |
/* | |
* Hide "Eintritt Frei" from event details in single event view | |
* Paste this to your child theme's functions.php file | |
*/ | |
add_action( 'tribe_before_get_template_part', function( $tpl ) { | |
if ( 'modules/meta/details.php' === $tpl ) { | |
add_filter( 'tribe_get_formatted_cost', '__return_empty_string' ); | |
} | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment