Created
January 27, 2017 01:39
-
-
Save GeoffEW/7a44e6ee55afa7800ce76c59c5f73240 to your computer and use it in GitHub Desktop.
Hides cost from the single event details section
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 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