Replies: 0
Hi there,
First of all thanks for this awesome plugin.
I am facing the following problem and I wonder if I am maybe just missing something here. When I register a new user and set the “Hide my profile from directory” in the privacy settings to Yes, the user is still visible in the member directory. I have triple checked all other UM settings, read posts with similar issues, but I can’t get it to work.
Since I am a developer myself I ended up looking in the code and there was one thing I already noticed in the DB. In the user_meta data the “hide_in_members” record for my test user was set to: a:1:{i:0;s:2:”Ja”;}. I should add that the site is running under the nl_NL locale and “Ja” is Dutch for “Yes”.
Digging into the code I ended up in the “um_remove_special_users_from_list” function in the core/um-filters-members.php and noticed this piece of code:
array(
'key' => 'hide_in_members',
'value' => 'Yes',
'compare' => 'NOT LIKE'
)
If I changed the ‘Yes’ to ‘Ja’ in the code the member directory shows the list correctly, hiding the user that choose to be hidden from it.
Now even though this works, it would be a hack and I prefer not to do that. So my question is: is there another way, something that I have missed that would make this privacy setting behave as intended no matter what the language of the website.
Many thanks.