• This plugin looks like exactly what I am looking for to really help my site out!! I am in the process of revamping a site that is pretty locked down. Almost every page/post is locked down to people who register and are in groups that have single capabilities. I am creating groups that contain multiple capabilities (which are named after certain companies).

    Before I install the plug-in, I would like to know if there is a code that will hide a section from all except from users that have a specific capability. For example if I have groups called Group1, Group2, Group3, etc… and a few have a capability of TEST, what would the code be to hide from all except those users that have the capability “TEST”?

Viewing 1 replies (of 1 total)
  • Plugin Author Andrés Villarreal

    (@andrezrv)

    Hi pjurado,

    Thank you for writing, and sorry for the delayed answer.

    You could do that with something like this (supposing “test” is the internal name of your custom capability):

    
    [hide for=":!test"]Lorem ipsum dolor sit amet.[/hide]
    

    For more information, check the plugins’ description, which includes a couple examples about how to deal with custom roles and capabilities.

    Best,

    Andrés.

Viewing 1 replies (of 1 total)
  • The topic ‘Hide from all except users with certain capabilities’ is closed to new replies.