functions - retrieve current user meta data (custom fields included)

I use "User Registration" plugin to create a registration form. Once the user has registered and logged in, I

I use "User Registration" plugin to create a registration form. Once the user has registered and logged in, I need to retrieve inside "Function.php" all his data that he completed in the registration form. I already tested wp_get_current_user() but it only return default fields...

I use "User Registration" plugin to create a registration form. Once the user has registered and logged in, I need to retrieve inside "Function.php" all his data that he completed in the registration form. I already tested wp_get_current_user() but it only return default fields...

Share Improve this question asked Oct 7, 2019 at 15:01 frenchman100frenchman100 153 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 2

Have you tried get_user_meta($user_id, $key, $single);?

https://codex.wordpress/Function_Reference/get_user_meta

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745098824a4611147.html

相关推荐

  • functions - retrieve current user meta data (custom fields included)

    I use "User Registration" plugin to create a registration form. Once the user has registered and logged in, I

    18小时前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信