Sedang Disiapkan

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)

Kemahiran: PHP, Wordpress

Lihat lebih lanjut: wordpress plugin dev, wordpress freelancer hire, wordpress dev freelancer, php freelancer id, hire wordpress freelancer, hire freelancer wordpress, hire a wordpress custom plugin, global response, freelancer wp plugin, freelancer user id, freelancer job global, freelancer folder, freelancer dev wordpress, freelancer dev c, custom wordpress freelancer job, change freelancer id, s2member plugin, freelancer go id, dev freelancer, wordpress plugin tweak, s2member, php buddypress, no bids, freelancer global, freelancer dev

Tentang Majikan:
( 6 ulasan ) North Miami, United States

ID Projek: #4038652

Dianugerahkan kepada:

rajeshsonisl

Quality work assured. Ready to get started. Thanks.

$150 USD dalam sehari
(375 Ulasan)
6.9

4 pekerja bebas membida secara purata $140 untuk pekerjaan ini

keiespro

That's what I can do .

$100 USD dalam 2 hari
(119 Ulasan)
6.3
Instantsolutions

I am interested to work on this [url removed, login to view] start now :) Thanks!,Instantsolutions

$89 USD dalam 3 hari
(64 Ulasan)
6.2
Chtioui86

Hi, Please see your private msg TY

$120 USD dalam 2 hari
(70 Ulasan)
5.9
Eidentity

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

$199 USD dalam 3 hari
(30 Ulasan)
5.7