Remove decimal points from Events Manager prices
The displayed price of Events Manager is also given after the decimal point.
In Japan, the decimal point is not used, so delete it.
Add the code below to your theme’s functions.php etc.
function b2n_em_get_currency_formatted( $formatted_price, $price , $currency, $format){
if ( preg_match( '/[0-9,.]+/u', $formatted_price, $match) ) {
$formatted_price = str_replace( $match[0] , number_format($price) , $formatted_price );
}
return $formatted_price;
}
add_filter( 'em_get_currency_formatted', 'b2n_em_get_currency_formatted', 10, 4 );