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 11 Answer
Reset to default 0I'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
版权声明:本文标题:custom field - Display Additional Info 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738459913a2087972.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论