This function should make it so the paid amount is not affected in the admin
function convert_zero_to_free( $amount, $return_raw ) {
// we don't want to mess with requests for unformatted values because those may get used in calculations
if ( ! $return_raw ) {
if( is_admin() ) { }
else { $amount = $amount == 0 ? __( 'free', 'event_espresso' ) : $amount; }
}
return $amount;
}
add_filter( 'FHEE__EEH_Template__format_currency__amount', 'convert_zero_to_free', 10, 2 );
Viewing 1 reply thread
The support post ‘Changing $0 to free is causing changes in the backend’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.