This code will add an “Exclude my profile from the member directory” field at membership checkout when using the Member Directory and Profile Pages Add On for Paid Memberships Pro.

"Exclude my profile from the member directory" field at checkout.


About the Recipe

The Member Directory and Profile Page Add On includes functionality to allow members to remove their profile from display. This field is added by default as a field on the user’s WordPress Profile. The recipe below adds that field at membership checkout (note that this recipe requires the Register Helper Add On).


The Code Recipe

This code recipe requires a Plus Account or higher.

View Membership Options

Comments (8)

I’ve implemented this but it just isn’t working.
The checkbox is on the checkout, check it to exclude, but it doesn’t.

Is there any advice you have to fix this?
Regardless what I check, the DB entry is still NULL for pmpromd_hide_directory

Hello, this would need some custom code & as a Plus member can reach out to our the support team in the Member Support Area for more guidance on how this can be achieved.

Hi Kimberly,

This code recipe is just what I needed!

I wonder if you could provide a similar recipe for adding the same field to the `My account/Account details` page so that users can view and change their answer to the “Exclude my profile from the member directory” checkbox.

This seems like a complementary feature to the one outlined in this post 🙂

Thanks!

Kimberly,

Thnks for your response. I will try advise as soon as I get to my desk.

One question that did not get answered however is: how to display an organization as the member.
I have 2 membership products: individual and company.
When Joe buys indivdual membership, he is losted in tge directory as joe
When Jane buys company membership for The Jane Company, what I want to see in the directory is The Jane Company. Finally, I want to see the benefits of the Jane Company (the member) flow down to Jane (the beneficiary or any designated beneficiary(ies))

Leave a Reply

For faster support related to issues on your specific site please open a ticket in our members support area.

Your email address will not be published. Required fields are marked *