woocommerce_price_format
Usage
add_filter( 'woocommerce_price_format', 'wp_kama_woocommerce_price_format_filter', 10, 2 );
/**
* Function for `woocommerce_price_format` filter-hook.
*
* @param $format
* @param $currency_pos
*
* @return
*/
function wp_kama_woocommerce_price_format_filter( $format, $currency_pos ){
// filter...
return $format;
}
- $format
- -
- $currency_pos
- -
Where the hook is called
woocommerce_price_format
woocommerce/includes/wc-formatting-functions.php 536
return apply_filters( 'woocommerce_price_format', $format, $currency_pos );