Last active
April 14, 2024 05:08
-
-
Save shameemreza/7aabd25f271c872ba797cd84928e7ec1 to your computer and use it in GitHub Desktop.
Add a custom text to your WooCommerce Price suffix - Price + Free shipping (Product Archive and Product Single)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'woocommerce_get_price_html', 'custom_price_html', 100, 2 ); | |
function custom_price_html( $price, $product ){ | |
$price .= ' + free shipping'; | |
return $price; | |
} |
Author
shameemreza
commented
Apr 10, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment