wc_price хук-фильтр . WC 1.0
Filters the string of price markup.
Использование
add_filter( 'wc_price', 'filter_function_name_850', 10, 4 ); function filter_function_name_850( $return, $price, $args, $unformatted_price ){ // filter... return $return; }
- $return(строка)
- Price HTML markup.
- $price(строка)
- Formatted price.
- $args(массив)
- Pass on the args.
- $unformatted_price(float)
- Price as float to allow plugins custom formatting. Since 3.2.0.
Где вызывается хук
woocommerce/includes/wc-formatting-functions.php 601
return apply_filters( 'wc_price', $return, $price, $args, $unformatted_price );