woocommerce_price_trim_zeros filter-hook . WC 1.0
Filter formatted price.
Usage
add_filter( 'woocommerce_price_trim_zeros', 'filter_function_name_8820' ); function filter_function_name_8820( $formatted_price ){ // filter... return $formatted_price; }
- $formatted_price(float)
- Formatted price.
Where the hook is called
woocommerce/includes/wc-formatting-functions.php 605
if ( apply_filters( 'woocommerce_price_trim_zeros', false ) && $args['decimals'] > 0 ) {