Hey @Karen!
Removing the cost field outright is a bit tricky, especially if it’s only for some certain events and not globally – however, you mention that allowing non-numeric values like “N/A” would be helpful too:
OR is it possible to show custom text there instead of a number, for instance “N/A” or “Private Session”?
The good news here is that YES this is possible! 🙂 It will unfortunately take some code customization, but it’s easy – just copy and paste the following snippet into your theme’s functions.php file:
add_filter( 'tribe_get_cost', 'cost_show_full_meta_field', 10, 2 );
function cost_show_full_meta_field( $cost, $post_id ) {
$full_cost = tribe_get_event_meta( $post_id, '_EventCost', false );
if ( isset( $full_cost[0] ) ) {
return sanitize_text_field( $full_cost[0] );
}
return $cost;
}
This will let values like “N/A” or “Contact for Details” or whatever be used as the “price”, without hindering the existing function of using numeric values like “$10.00” and all that.
I hope this helps!
— George