• Resolved MadnessMedia

    (@madnessmedia)


    Hi,

    Is it possible to only show prescribed ‘types’ to different users? (Like each user has their own ‘types’ menu.) I am using the plugin for customer error logging. Users cannot register their own account. I will be registering known customers and give them their username and password. I am using the ‘type’ option for sites or ‘places’ on which the error occurs. I don’t want all users to see all ‘sites’ that I service. I only want a users to see the available sites that they are responsible for.

    Any help will be much appreciated.

    https://www.ads-software.com/plugins/awesome-support/

Viewing 1 replies (of 1 total)
  • Plugin Author julien731

    (@julien731)

    Hi MadnessMedia,

    What you’re asking is technically possible, but it will require a fair amount of custom code. I won’t be able to help you achieve it but I can point you in the right direction.

    What you want to do is:

    1. Register your type taxonomy
    2. Display the taxonomy terms on the user profile
    3. Select the available terms for this user from there
    4. Hook into get_terms() on the front-end and
    1. Make sure you’re working with the type taxonomy
    2. Get the allowed terms from the user metas
    3. Exclude the terms that aren’t allowed

    Hope this helps.

Viewing 1 replies (of 1 total)
  • The topic ‘Different "Type"s for different users’ is closed to new replies.