Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How to tell if a person has uploaded a avatar only once?


Tosh
Participant

@xberserker

I tried this:

if ( file_exists( $avatar_folder_dir ) ) {

// Run code if user hasn’t uploaded a avatar

} else {

// Run code if they have a avatar uploaded already

}

It thinks they uploaded a avatar either way. I created a new user and uploaded a avatar and it ran the else.

Skip to toolbar