Login/Logout and user welcome in WordPress
We should welcome the users on our site to make them comfortable and also to enhance the design of our site. Insert this code to add a login/logout message. Paste the code in the function.php file in the child theme. In the above code first, we are checking if the user is login or not