- This topic has 2 replies, 2 voices, and was last updated 19 hours, 11 minutes ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Tweaks › Adding another Title to the members information
I would like to add another title ‘Professor’ to the available Titles in the drop down list in the members information.
I could presumably add an option in to eMember_registration_utils.php around line 767 but is that all I would need to do and is the same code used when the member modifies thier details?
Of course there is the risk on upgrade that this file gets overwritten and the modification is lost, is there any other way to achieve this?
The website users have quite a few Doctors who are also Professors who are quite fussy about titles so I would like to be able to do this.
Thanks.
John
Hi, Thanks for the suggestion. Editing the option at line 767 of eMember_registration_utils.php on its own won’t be enough, for two reasons:
1. The edit profile form has its own copy of the title list (in eMember_profile_utils.php), so the new option would not show up when a member edits their details.
2. The “title” column in the eMember members database table only accepts a fixed set of values (Mr, Mrs, Miss, Ms, Dr). Any other value, such as “Prof”, will not be saved correctly unless the table structure is updated as well.
Because of this, we will add “Prof” (Professor) to the title options in the core plugin. The next eMember update will add it to the registration form and the edit profile form, and will also update the database table. That way you don’t need to modify any plugin files, and nothing is lost when you upgrade.
If your members need a fully custom set of titles (for example, a combined “Prof Dr”), you can use the Form Builder addon to create your own drop-down field with any options you want:
We will update this thread once the new version is released.
We have sent you an update via email.