Created
February 9, 2023 08:55
-
-
Save Archie22is/60213244a55d313b22eac149586c830b to your computer and use it in GitHub Desktop.
Set all WooCommerce product prices as "POA"
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
<?php | |
/** | |
* Set all WooCommerce product prices as "POA" | |
* @author Archie M | |
* | |
*/ | |
function poa_product_price_display( $price ) { | |
$price = 'POA'; | |
return $price; | |
} | |
add_filter( 'woocommerce_get_price_html', 'poa_product_price_display' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment