• Resolved kokoruz

    (@kokoruz)


    Is it possible to limit the visibility of the taxonomy in the user profile based on their user role? I am using the taxonomy to sort the users based on information I control. I would prefer for them to not see or edit this information.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author shawfactor

    (@shawfactor)

    Your timing is excellent, I have finally fixed this issue in the latest version i realeased just then (available from the repository), I actually commented out the needed check in the previous.

    Anyway. This all handled using the standard capabilities argument you use when you registre the custom taxonomy

    Please test and let me know, how you find it.

    pete

    • This reply was modified 5 years, 6 months ago by shawfactor.
    Thread Starter kokoruz

    (@kokoruz)

    Perfect timing.

    Couple questions. I have added the following code and toggling between ‘read’ and ‘edit_users’ allows me to show or hide the taxonomy for that user. They can’t add or delete a term (which is perfect) but they can select from the list of terms provided.

        'capabilities'  => array(
            'manage_terms'              =>'edit_users',
            'edit_terms'                =>'edit_users',
            'delete_terms'              =>'edit_users',
            'assign_terms'              =>'read',
        ),

    I have two roles, Subscriber and SubcriberPlus. With those two roles each has a unique taxonomy of terms. With the capabilities I can hide it or display it now which is perfect for the admin to manage for the users but if I want to have the user see/select the taxonomy of terms related to their role is that possible. I’m currently reading about capabilities but would love to hear back from you as the author for your feeback. Thank You.

    Thread Starter kokoruz

    (@kokoruz)

    I believe I solved this. I assigned capabilities to each unique role based on the taxonomy name, and now the terms can be edited or manged based on their assignments. Thanks Again!

        'capabilities'  => array(
            'manage_terms'              => 'edit_client',
            'edit_terms'                => 'edit_client',
            'delete_terms'              => 'edit_client',
            'assign_terms'              => 'edit_client',
        ),
    Plugin Author shawfactor

    (@shawfactor)

    great resolving this for good order

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘User Taxonomy Visibility’ is closed to new replies.