Trying to force wordpress logged-in users to upload images before using the site?
For this the code should first check if the user has already uploaded an image and if no the code keep redirecting the user to "change avatar" page or any custom page. I'm wondering if it's possible. The code below doesn't work
if (echo get_avatar( get_the_author_meta( 'ID' ) == 0){
return home_url('uploadimage.php');
}
I add this code to the function.php page of the theme.