How to display fallback value if the field value is empty.

Empty fields are hidden on profile form "view" mode. It may look weird. You may use the code snippet below to display fallback value "--" for the empty fields. It works only for the "view" mode. Just add this code snippet to the functions.php file in the active theme (child theme) directory.

The example: