How do we add the new field to the user
I am developing a system where users can upload avatars with wordpress. But users also need to see someone’s avatar. for this i need to know if the user’s avatar is loaded or not. I know I can use meta for this. but i try to avoid this method because i have reason. I need a second query to pull in the meta info. I don’t want this to happen. I want to keep the information of whether there is an avatar in the users table. I need user_avatar field like display_name, user_email. add a column there for that antipattern. I will not do this. but can the get_user() method get me meta information without needing an additional query each time?
Leave an answer