Skip to content

Instantly share code, notes, and snippets.

@yiedpozi
Created July 24, 2020 16:23
Show Gist options
  • Save yiedpozi/ba3fc945ec3729d44acde6763e621e8c to your computer and use it in GitHub Desktop.
Save yiedpozi/ba3fc945ec3729d44acde6763e621e8c to your computer and use it in GitHub Desktop.
WooCommerce Checkout Shipping Additional Text
add_action( 'woocommerce_after_shipping_rate', 'checkout_shipping_additional_text', 20, 2 );
function checkout_shipping_additional_text( $method, $index ) {
if ( $method->get_method_id() == 'free_shipping' ) {
echo '<br>Pesanan akan diterima pada 3 - 5 hari bekerja';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment