You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When a custom field's name, and meta key, is title and the option to display the field in the profile is set to true the field is shown "empty" while data exist in the user meta table for this key.
The field value is displayed as expected except on the user profile edit page in the administrative area.
To Reproduce
Steps to reproduce the behavior:
Create a custom registration text field named title and set option 'profile' => true, (sample recipe)
Register new member and complete the custom registration field during checkout.
In the administrative area, navigate to Users > All Users and select user to view details.
Scroll down to "More Information" section to view "Title" field, field value is empty.
Check front end profile page, export memberslist csv and database to confirm a value for this meta key exists.
As a temporary workaround an additional field, that will only display for administrators, may be added below this field to display the value of this field.
/* Temporary workaround to display the value of the "title" field in the administrative area on the user edit profile page. */if ( is_admin() && empty( $user_id ) && isset( $_REQUEST['user_id'] ) ) {
$user = get_user_by( 'id', $_REQUEST['user_id'] );
}
$fields[] = newPMProRH_Field(
'display_title_value', // input field name, used as meta key'readonly', // field typearray(
'label' => 'Title Value', // field label'hint' => '<br /><em>Display value of Title field above *(Temp workaround for RH not displaying title field)</em>',
'profile' => 'only_admin', // display on user profile'value' => get_user_meta( $user->ID, 'title', true ),
)
);
Describe the bug
When a custom field's name, and meta key, is
title
and the option to display the field in the profile is set totrue
the field is shown "empty" while data exist in the user meta table for this key.The field value is displayed as expected except on the user profile edit page in the administrative area.
To Reproduce
Steps to reproduce the behavior:
title
and set option'profile' => true,
(sample recipe)Expected behavior
Field's value displays in the input field for the
title
field.Isolating the problem (mark completed items with an [x]):
The text was updated successfully, but these errors were encountered: