Skip to content

Instantly share code, notes, and snippets.

@bekarice
Last active February 4, 2019 23:16

Revisions

  1. bekarice revised this gist Dec 3, 2014. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion wc-remove-shipping-free-label.php
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,3 @@
    <?php
    //Remove (Free) label on cart page for "Shipping and Handling" if cost is $0
    function wc_change_cart_shipping_free_label( $label ) {
    $label = str_replace( "(Free)", " ", $label );
  2. bekarice created this gist Oct 1, 2014.
    7 changes: 7 additions & 0 deletions wc-remove-shipping-free-label.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    <?php
    //Remove (Free) label on cart page for "Shipping and Handling" if cost is $0
    function wc_change_cart_shipping_free_label( $label ) {
    $label = str_replace( "(Free)", " ", $label );
    return $label;
    }
    add_filter( 'woocommerce_cart_shipping_method_full_label' , 'wc_change_cart_shipping_free_label' );