WordPress shortcode to display user registration date
If your site offers the possibility for users to register, you might at some point want to be able to display users’ registration date. Here’s a super simple code snippet to create a WordPress shortcode that will display registration date of a specific user. First, place the code below into your theme’s functions.php file and don’t forget to save. function wpb_user_registration_date($atts, $content = null ) { $userlogin = shortcode_atts( array( ‘user’ => FALSE, ), $atts ); $uname = $userlogin[‘user’]; if… Read More »WordPress shortcode to display user registration date