Skip to content

Commit 5e052a2

Browse files
authored
Merge pull request woocommerce#16718 from woocommerce/fix/16678
Preserve the behavior of wc_price filter
2 parents 0510714 + 97498ba commit 5e052a2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

includes/wc-formatting-functions.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -508,11 +508,12 @@ function wc_price( $price, $args = array() ) {
508508
/**
509509
* Filters the string of price markup.
510510
*
511-
* @param string $return Price HTML markup
512-
* @param float $unformatted_price Price as float to allow plugins custom formatting
513-
* @param array $args Pass on the args
511+
* @param string $return Price HTML markup.
512+
* @param string $price Formatted price.
513+
* @param array $args Pass on the args.
514+
* @param float $unformatted_price Price as float to allow plugins custom formatting. Since 3.2.0.
514515
*/
515-
return apply_filters( 'wc_price', $return, $unformatted_price, $args );
516+
return apply_filters( 'wc_price', $return, $price, $args, $unformatted_price );
516517
}
517518

518519
/**

0 commit comments

Comments
 (0)