Hi,
The sanitize callback on the number field has been set to price_format. I've also set the step to any.
function price_format( $value, $field, $old_value, $object_id ) {
$value = number_format( $value, 2, ',', ' ' );
return $value;
}
When entering a number into the field and saving the post, it displays fine on the front-end, but the field value disappears in the back-end.
E.g. If I enter any number between 1 and 999, the field updates to 1,00 or 999,00. Any number over that and the field is blank after saving.