Skip to content

Instantly share code, notes, and snippets.

@andrasguseo
Created October 10, 2016 16:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrasguseo/3ab88ca57c70a6db3053f2d879534558 to your computer and use it in GitHub Desktop.
Save andrasguseo/3ab88ca57c70a6db3053f2d879534558 to your computer and use it in GitHub Desktop.
For Armin - Hide "Eintritt Frei" from event details in single event view
<?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