I have a custom field in wordpress' backend(for the admin to view and modify only) that only accepts numbers, however, my client wants this number to be formatted something like this:
he introduces lets say 980000, and after pressing tab, or clicking somewhere else, it takes this format: 980,000.00
I'm well aware of stuff like number_format(,2) and other functions that can format numbers, the problem comes when having this quantity sent, we would recieve the message: "Numbers only", because of the comas, is there any way to do this? I have no idea where to even start.
Thanks