Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey @jjw-1

    Thank you for reaching out.
    You might want to try the following extension: https://theeventscalendar.com/extensions/show-cost-field/

    Let us know if that works
    Geoff

    Thread Starter Jeroen

    (@jjw-1)

    Ahh, the solution is was already available for over three years, thanks for pointing it out to me! Works like a charm in combination with your snippet to remove ‘Free’ from the front-end:

    function tribe_not_show_free ( $cost, $post_id, $with_currency_symbol ) {
    
    	if ( $cost == 0 || $cost == 'Free' ) {
    		$cost = str_replace('Free', '', $cost);
    		$cost = str_replace(' – ', '', $cost);
    	}
    	return $cost;
    }
    add_filter ( 'tribe_get_cost', 'tribe_not_show_free', 10, 3 );

    Thanks so much for the update, Jeroen!

    Have a fantastic day,
    Juan.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Activating plugin removes Event cost’ is closed to new replies.