Using Local Profile Picture
I’ve been pulling my hair out trying to resolve this and I know it’s probably the most simply thing but that’s what I get for not having sufficient knowledge.
So my membership plugin creates a user and adds a profile picture to WordPress’ user directory. But I need this profile picture to sync with Buddypress. I’ve learned quite a bit in pursuit in finding a solution and I feel like I’m so close and that’s why I need the help on the last mile.
I was able to disable Buddypress’ attempts at finding a Gravatar for any given user using
add_filter('bp_core_fetch_avatar_no_grav', '__return_true');. Worked great! Now, I’m staring at the “Mystery Man” and I know I need to use
bp_core_fetch_avatarto change it to the local avatar uploaded to WordPress. That’s where I’m stuck. I need a snippet of code where I can plugin in the directory for it find the user and attach the profile picture!
Any guidance would be appreciated it!
- You must be logged in to reply to this topic.