mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-04-30 11:42:22 +08:00
https://www.businessbloomer.com/woocommerce-shipping-rate-description-cart-checkout-page/
7 lines
293 B
Text
7 lines
293 B
Text
add_action( 'woocommerce_after_shipping_rate', 'wc_shipping_rate_description' );
|
|
|
|
function wc_shipping_rate_description( $method ) {
|
|
if ( $method->id === 'free_shipping:6' ) {
|
|
echo '<p>Some HTML in here where you can explain the benefits of choosing this shipping rate</p>';
|
|
}
|
|
}
|