Skip to content

Instantly share code, notes, and snippets.

@GeoffEW
Created January 27, 2017 01:39
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GeoffEW/7a44e6ee55afa7800ce76c59c5f73240 to your computer and use it in GitHub Desktop.
Save GeoffEW/7a44e6ee55afa7800ce76c59c5f73240 to your computer and use it in GitHub Desktop.
Hides cost from the single event details section
<?php
/**
* Hides cost from the single event details section
*
* @param string $tpl Template relative path
*/
function tribe_single_hide_cost( $tpl ) {
if ( 'modules/meta/details.php' === $tpl ) {
add_filter( 'tribe_get_formatted_cost', '__return_empty_string' );
}
}
add_action( 'tribe_before_get_template_part', 'tribe_single_hide_cost' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment