Support » Plugin: CampTix Event Ticketing » Give access to other user roles?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Konstantin Kovshenin

    (@kovshenin)

    Hey there! Not with a UI, but sure, you can do that by filtering camptix_capabilities with a plugin. You can learn more from the code right here: https://github.com/Automattic/camptix/blob/master/camptix.php#L92

    Hope that helps!

    Ok, so just to clarify– If I use Capability Manager plugin, and add “camptix_capabilities” to a user role that I want to have access to it, that’s all that’s required? ie. I’m hoping to just have an account with “Read” access, but can also manage tickets.

    Thanks,

    Plugin Author Konstantin Kovshenin

    (@kovshenin)

    No, “camptix_capabilities” is not a cap or role, it’s a filter name. You have to filter it with a plugin and supply your own capabilities array.

    Thanks for the quick reply!

    Any chance you could break down this procedure for me, or point me to some instructions? Haven’t had the need to deal with this type of thing, but is very important for our needs.

    I suppose I could create a new capability, and change all the manage_options items in your code to it, but that doesn’t seem like an ideal solution, and would break if plugin is updated.

    Plugin Author Konstantin Kovshenin

    (@kovshenin)

    Either that, or you can do the same in a different plugin with a filter:

    function my_camptix_caps( $caps ) {
        $caps['manage_tickets'] = 'my_custom_cap';
        return $caps;
    }
    add_filter( 'camptix_capabilities', 'my_camptix_caps' );

    Hope that helps!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Give access to other user roles?’ is closed to new replies.