custom_format_price( $original_price ) ) { return $custom; } return $return; }, 10, 6 ); } function custom_format_price( $price ) { if ( $price >= 1000000000 ) { $billions = intval( $price / 1000000000 ); $remainder = $price % 1000000000; $formatted_price = number_format( $billions, 0 ) . ' tỷ'; if ( $remainder >= 1000000 ) { $millions = intval( $remainder / 1000000 ); $formatted_price .= ' ' . number_format( $millions, 0 ) . ' triệu'; } return $formatted_price; } elseif ( $price >= 1000000 ) { $millions = intval( $price / 1000000 ); $formatted_price = number_format( $millions, 0 ) . ' triệu'; return $formatted_price; } } }