woocommerce_price_trim_zeros
Использование
add_filter( 'woocommerce_price_trim_zeros', 'wp_kama_woocommerce_price_trim_zeros_filter' );
/**
* Function for `woocommerce_price_trim_zeros` filter-hook.
*
* @param $false
*
* @return
*/
function wp_kama_woocommerce_price_trim_zeros_filter( $false ){
// filter...
return $false;
}
- $false
- -
Где вызывается хук
woocommerce/includes/wc-formatting-functions.php 637
if ( apply_filters( 'woocommerce_price_trim_zeros', false ) && $args['decimals'] > 0 ) {