Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

maheshwarimani1991 on "Get_user_meta not working in my plugin"

$
0
0

i am using get_user_meta() function in my plugin but it is not showing any values for usermeta table, it is showing blank result.

I am able to see the value present in phpmyadmin. I am using it in a plugin add_action('user_register','user_sf_lead'), but it is not showing any value in my code.

I am able get all the value of USER table but no values from USERMETA table in my plugin.

When updating my user i am able to get all values.

How to get values from get_user_meta while using action hook
add_action('user_register','user_sf_lead')

Also when get_userdata , i getting values from USER table but not from USERMETA table.

$user_info = get_userdata($user_id);
'Name' => $user_info->ID,
'First_Name__c' => $user_info->first_name,

Provide solution??


Viewing all articles
Browse latest Browse all 8245

Trending Articles