Skip to content

Instantly share code, notes, and snippets.

@Archie22is
Created February 9, 2023 08:55
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 Archie22is/60213244a55d313b22eac149586c830b to your computer and use it in GitHub Desktop.
Save Archie22is/60213244a55d313b22eac149586c830b to your computer and use it in GitHub Desktop.
Set all WooCommerce product prices as "POA"
<?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