How get Capability from Categorie ?

Hi,

I would like to know how to get Capability from a categorie (from an ID categorie) ?
And next, how to add/remove capability to a categorie ?

I try to found here but… nothing : http://api.itthinx.com/groups/

Thanks by advance.
Nathan

4 Responses to How get Capability from Categorie ?

  1. Nathanael January 28, 2018 at 8:54 pm #

    It’s fine, I get it : Groups_Restrict_Categories::set_term_read_capabilities()

    Have nice day !

    Nahan

    • antonio January 29, 2018 at 6:49 am #

      Perfect !!
      Cheers,
      Antonio B.

  2. Nathanael January 28, 2018 at 8:31 pm #

    Hi,

    I tryed Groups_Restrict_Categories::get_term_read_groups($id_cat) but that return only ID groups, but I use Capability for restricted categorie, not group access.

    So… what is the function/class to get/change Capability needed for categories ?

    Best regards,
    Nathan

  3. antonio January 27, 2018 at 6:01 pm #

    Hi nathan,
    Sorry, we need to impove the GRC documentation.
    You can use Groups_Restrict_Categories::get_term_read_groups(), Groups_Restrict_Categories::set_term_read_groups() and Groups_Restrict_Categories::delete_term_read_groups(). Here you a code that you can use as reference.
    Kind Regards,
    Antonio B.

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account

Share