Hide Coin Amounts on Checkout Page

This snippet will hide the coin amounts on the checkout page. Coin amounts will still be shown on the payment page.


add_action( 'wp_footer', 'mcc_remove_coin_amounts_checkout', 9999 );
function mcc_remove_coin_amounts_checkout() {
?>
<script type="text/javascript">
jQuery(document).ready(function() {
    setTimeout(function() {
        jQuery("#mcc_currency_id option").each(function() {
            var optionText = jQuery(this).text();
            optionText = optionText.replace(/\(.*?\)/, '');
            jQuery(this).text(optionText.trim());
        });
    }, 400);
});
</script>
<?php
}