pmpro-register-helper
pmpro-register-helper copied to clipboard
Field Value not displayed if field name is "title"
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.
- Load custom meta field display code to verify that meta key name is not reserved by WP
Expected behavior
Field's value displays in the input field for the title
field.
Isolating the problem (mark completed items with an [x]):
- [x] I have deactivated other plugins and confirmed this bug occurs when only Paid Memberships Pro plugin is active.
- [x] This bug happens with a default WordPress theme active, or Memberlite.
- [x] I can reproduce this bug consistently using the steps above.