IMAGE UPLOAD

if(get_user_meta( $user_logged_id, “user_new_profile_picture”, TRUE )): update_user_meta( $user_logged_id, ‘user_new_profile_picture’, get_the_permalink( $attachment_id ) ); else: add_user_meta( $user_logged_id, ‘user_new_profile_picture’, get_the_permalink( $attachment_id ), TRUE); endif;

Create a free website or blog at WordPress.com.

Up ↑