# Descriptions Under Shipping Methods

> Prints a short explanation under each shipping option at checkout, such as delivery times or "signature required", so customers know what they are choosing.

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

## Code

```php
$wpide_rate_notes = array( // Rate ID or method ID => description.
    'free_shipping' => 'Delivered in 3 to 5 working days.',
    'flat_rate'     => 'Tracked delivery in 1 to 2 working days.',
    'local_pickup'  => 'Collect from our shop, usually ready within 2 hours.',
);

add_action( 'woocommerce_after_shipping_rate', function ( $rate ) use ( $wpide_rate_notes ) {
    $text = $wpide_rate_notes[ $rate->get_id() ] ?? ( $wpide_rate_notes[ $rate->get_method_id() ] ?? '' );

    if ( '' !== $text ) {
        printf( '<br><small class="wpide-rate-note">%s</small>', esc_html( $text ) );
    }
} );
```

## Notes

Keys can be rate IDs (flat_rate:1) or method IDs (local_pickup), and the notes show on the classic cart and checkout.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Descriptions Under 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/
