Customize Age display with “Days”, “Weeks” , “Months” and “Years” ago
This article will guide you in customizing the age display. You need to add the predefined Birth Date field in your profile form. To do this, go to wp-admin>Ultimate Member>Forms> Edit Profile Form. Click on the plus sign button and select the Birth Date field from the Fields Manager.
The example code provided above will give you the “days old”, “weeks old”,” months old” & “years old” values for the “birth_date” field.
Warning: We have created this code example to provide guidance and to make it easier for you to implement this code into your website. However, we are not able to provide any support when it comes to customizing the plugin. If you need help implementing this code, please hire a developer.