Created
November 15, 2016 13:29
-
-
Save MinaPansuriya/a62aeec304634dd916fbef1b1be21614 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/** | |
* @Title: WooCommerce Add Product Price Unit on Shop and Single Product Page | |
* @Author: Mina Pansuriya | |
* @Website: http://minapansuriya.com | |
*/ | |
add_filter( 'woocommerce_get_price_html', 'pbs_woo_add_product_unit_after_prie' ); | |
add_filter( 'woocommerce_cart_item_price', 'pbs_woo_add_product_unit_after_prie' ); | |
function pbs_woo_add_product_unit_after_prie( $price ) { | |
$price .= ' per litre'; | |
return $price; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment