# Show "Free" Next to Zero-Cost Shipping Methods

> Adds a clear "Free" label to shipping options that cost nothing, such as local pickup, which WooCommerce otherwise shows with no price at all.

- Type: PHP
- Runs: Run everywhere
- Category: [WooCommerce](https://wpide.com/library/category/woocommerce/)
- Requires: WooCommerce
- Tags: woocommerce, shipping, labels
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/woo-free-shipping-label-suffix/

## Code

```php
$wpide_free_text = 'Free'; // Label added to zero-cost methods.

add_filter( 'woocommerce_cart_shipping_method_full_label', function ( $label, $method ) use ( $wpide_free_text ) {
    if ( (float) $method->get_cost() > 0 || false !== strpos( $label, $wpide_free_text ) ) {
        return $label;
    }

    return $label . ': <strong>' . esc_html( $wpide_free_text ) . '</strong>';
}, 10, 2 );
```

## Notes

Change $wpide_free_text to translate or restyle the label.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Show "Free" Next to Zero-Cost Shipping Methods" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
