Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter('wc_price_args', 'wc_force_decimals_for_price_display');
- function wc_force_decimals_for_price_display($args) {
- if (isset($args['force_decimals'])) {
- $args['decimals'] = $args['force_decimals'];
- } else {
- $args['decimals'] = 2;
- }
- return $args;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement