I gang

If no Buddypress avatar redirect to upload avatar page

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)

Færdigheder: PHP, WordPress

Se mere: wordpress plugin dev, wordpress freelancer hire, wordpress dev freelancer, hire wordpress freelancer, hire freelancer wordpress, hire wordpress custom plugin, global response, freelancer job global, freelancer folder, freelancer dev wordpress, custom wordpress freelancer job, s2member plugin, dev freelancer, wordpress plugin tweak, s2member, php buddypress, no bids, freelancer global, freelancer dev, wordpress custom redirect, avatar upload plugin, redirect code, wordpress avatar, custom function wordpress, auto response

Om arbejdsgiveren:
( 6 bedømmelser ) North Miami, United States

Projekt-ID: #4038652

Tildelt til:

rajeshsonisl

Quality work assured. Ready to get started. Thanks.

$150 USD på 1 dag
(375 bedømmelser)
6.9

4 freelancere byder i gennemsnit $140 for dette job

keiespro

That's what I can do .

$100 USD in 2 dage
(119 bedømmelser)
6.3
Instantsolutions

I am interested to work on this project.Lets start now :) Thanks!,Instantsolutions

$89 USD in 3 dage
(64 bedømmelser)
6.2
Chtioui86

Hi, Please see your private msg TY

$120 USD in 2 dage
(70 bedømmelser)
5.9
Eidentity

***********************************************BuddyPress PRO* Gladly at your service************************************** Personal interest to play & work on BuddyPress plugins. Past experience of working on BuddyPre Mere

$199 USD in 3 dage
(30 bedømmelser)
5.7