Do you want to show the user registration date in WordPress? Often popular membership sites and forums display the user registration date on profile as βmember since 2015β. In this article, we will cover how to show user registration date in WordPress.
Where and How You Want to Show User Registration Date?
Some of you may just want to display a userβs registration date in the admin columns of the Users page. This will give you a quick overview of when a user joined your website and allow you to sort by registration date.
Another usage scenario is to display a userβs registration date on the βEdit Profileβ page. This will allow any administrator and the user themselves to see when they joined your website.
Last but probably the most popular usage scenario is when you want to display the user registration date on their public profile on the front-end of your website.
Letβs take a look at how you can do all of them.
Adding Registered Date Column on Users Page in Admin Area
First thing you need to do is install and activate theΒ Admin ColumnsΒ plugin. Upon activation, you need to visitΒ Settings Β» Admin ColumnsΒ to configure the plugin.
Under the admin columns tab, click on users and then click on add column button.
Next select βRegisteredβ in the Type drop down menu and click on store updates button.
You can now visit the users screen where you will see a new column labeled βRegisteredβ showing the date when a user registered on your WordPress site.
See what other things you can do toΒ add and customize admin columns in WordPress.
Showing Registration Date Field in User Profile
For showing registration date on the edit profile page, you will need to upload a custom plugin to your website.
Simply create a new file on your computer using a text editor like Notepad and save it as membersince.phpΒ on your desktop.
Next open the file and paste the following code inside it.
Save your file and then upload it to your WordPress site.
Finally you can connect to your WordPress site using a FTP client and then go to /wp-content/plugins/Β folder. Select the membersince.php file from your computer and then upload it.
Now you can go to your WordPress plugins page and activate this plugin on your website.
Thatβs all. Verify everything is working by editing a user profile on in your WordPress admin area, and you will see the user registration date.
Showing User Registration Date on Your Website
In this method, we will be using a simple shortcode to display any users registration date on the front-end of your WordPress site.
First you will need to add the following code in your themeβsΒ functions.phpΒ file or in aΒ site-specific plugin.
Next, you can display a userβs registration date by simply using theΒ shortcodeΒ like this:
[membersince user=peter]Replace peter with the username that you want to show.
We hope this article helped you show registration date in WordPress user profiles. You may also want to see our tutorial on how toΒ add additional user profile fields in WordPress registration.
If you liked this article, then please subscribe to ourΒ YouTube ChannelΒ for WordPress video tutorials. You can also find us onΒ TwitterΒ andΒ Facebook.