Skip to content

Instantly share code, notes, and snippets.

@shameemreza
Last active April 14, 2024 05:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shameemreza/7aabd25f271c872ba797cd84928e7ec1 to your computer and use it in GitHub Desktop.
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)
add_filter( 'woocommerce_get_price_html', 'custom_price_html', 100, 2 );
function custom_price_html( $price, $product ){
$price .= ' + free shipping';
return $price;
}
@shameemreza
Copy link
Author

CleanShot 2024-04-10 at 11 18 54

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment