terapeuticaonline on "[Plugin: Ultimate Member] um_user not getting custom profile info"

ساخت وبلاگ

Hi everyone...

I'm in a trouble with this, I really need some help. I'm trying to use um_user() function to retrieve some CUSTOM fields from users profiles and it doesn't work at all.

Im putting the code inside a plugin to create a dynamic shortcode (Easy code placement and CSS and Javascript Toolbox) so, yesterday when I was using Cimy custom fields for this it worked. So now, it doesnt and i had to uninstall Cimy's UEF because it was making a conflict with UM.

Here is the code I use inside the shortcode:

<?php um_fetch_user( get_current_user_id() ); echo um_user('user_agenda');
?>

Where "user_agenda" is a valid custom field, has data by default and was modified by user several times, and it just doesn't show!

Also I tryed and modified the entire code of my site to make this:

if (strpos($current_user_role, 'customer') !== false) { um_fetch_user( $current_userid ); $up_showchat = um_user('user_therapychat');
if (strpos($up_showchat, 'perfil') !== false) { $current_showchat = 1; } elseif (strpos($up_showchat, 'sitio') !== false) { $current_showchat = 2; } else { $current_showchat = 3; }
} else { $current_showchat = 3;
}

But, $up_showchat doesn't get filled with um_user. Note that $current_userid works for several other functions in the same code.

Please, what am I doing wrong?
Thanks in advance,
Juan.

https://wordpress.org/plugins/ultimate-member/

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 192 تاريخ : سه شنبه 18 خرداد 1395 ساعت: 1:37