I have this function but the function name is “user_profile_update_errors”. so it does not work without press “Edit” button in user edit page. Which should I use function for it?
I’m creating a short code that shows both first and last name of the user if he’s logged in, or, if he’s logged in, but hasn’t configured any name, it will return a random name with a message telling him to edit his profile.
I’m succeeding into getting the names, but not into showing the text that should appear in case the user has no name. The code:
I have defined login levels for users registered on my site as Level 1 and Level 2. I have added a column for same in admin panel users page (users.php), I’m trying to add sorting option but on click for sorting not working. The meta key is level
. Here’s what I tried.