If no Buddypress avatar redirect to upload avatar page
$30-250 USD
Completed
Posted over 11 years ago
$30-250 USD
Paid on delivery
Hello,
I need a WordPress plugin or custom-function that checks if logged in user has a Buddypress avatar and redirects to upload avatar page if false.
This function also needs to play nice with the plugin "s2member".
I have attempted to use the code :
global $bp;
if ( !bp_get_user_has_avatar()) { add_action( 'wp', 'custom_redirect', 3 ); }
function custom_redirect(){
global $wp;
bp_core_redirect(bp_core_get_user_domain($user->ID)."profile/change-avatar/");
exit;
}
I'm sure my code just needs a little tweak so this should be an easy job.
Requirement #1. Freelancer must have own DEV environment. I WILL NOT SET UP A HOST FOR YOU!
Requirement #2. MUST HAVE READ INSTRUCTIONS ( auto response bids will go into my "never hire freelancer" folder)
***********************************************BuddyPress PRO* Gladly at your service************************************** Personal interest to play & work on BuddyPress plugins. Past experience of working on BuddyPress plugins. Have created BuddyPress plugin as well in which Audio/Video is played online. Would like to work with you. Let's discuss.