Check if user_cover is defined
-
Hello,
I am trying to check if a user has defined an avatar so that I can display a notification if it’s not the case.
However, when I check if
get_user_meta( get_current_user_id(), 'user_cover', true )
isempty
it always returnstrue
. If I check withget_avatar
I can’t see if it’s the default avatar or a user defined avatar.Any idea?
Thanks for your help!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Check if user_cover is defined’ is closed to new replies.