admin管理员组

文章数量:1193328

Hello guys, i have this problem. I added this additional field but i can't get the value for that specific field

I'm using this code but shows nothing:

($field['type'] === 'cedula' && !empty($course_id)) {
                $current_user = wp_get_current_user();
                if (!empty($current_user)) {
                    $field['content'] = $current_user->"here should be the variable";
                }

And my code reference is this one:

($field['type'] === 'full_name' && !empty($course_id)) {
                $current_user = wp_get_current_user();
                if (!empty($current_user)) {
                    $field['content'] = $current_user->user_firstname;

The thing is that i don't know how to show the field's value for the Additional User Information

Hello guys, i have this problem. I added this additional field but i can't get the value for that specific field

I'm using this code but shows nothing:

($field['type'] === 'cedula' && !empty($course_id)) {
                $current_user = wp_get_current_user();
                if (!empty($current_user)) {
                    $field['content'] = $current_user->"here should be the variable";
                }

And my code reference is this one:

($field['type'] === 'full_name' && !empty($course_id)) {
                $current_user = wp_get_current_user();
                if (!empty($current_user)) {
                    $field['content'] = $current_user->user_firstname;

The thing is that i don't know how to show the field's value for the Additional User Information

Share Improve this question asked Aug 16, 2022 at 16:36 ingenierodos neuromediaingenierodos neuromedia 1
Add a comment  | 

1 Answer 1

Reset to default 0

I've found the answer to my question. In the DB there is a field in the wp_usersmeta table that saves that custom value. I went there and got the current meta_key for that field.

本文标签: custom fieldDisplay Additional Info