• Resolved Ryan Bayne

    (@ryan-bayne)


    Hi

    I’m the developer of TwitchPress and I’ve created the TwitchPress UM Extension. The goal can be looked at in two different ways.

    1. I’m changing WordPress capabilities based on the Twitch.tv users subscription level.

    2. I’m changing UM roles based on the Twitch.tv users subscription level.

    I’ve been struggling to confirm a good reason why you’ve invented your own role that bypasses the ability to use WP core functions when determining a users access to any feature.

    Can’t you just have a Community capability instead of a role and store the capability normally (in wp_capabilities option) so that plugins can integrate with UM by default?

    My capabilities might be…

    • administrator
    • twitchpressdeveloper
    • um_member

    or they might be…

    • subscriber
    • um_admin

    The UM plugin would use the WP API to determine the user’s membership level and not a range of functions that uses a value in the options table that other plugins won’t recognize.

    I could do this easy enough…

    if( user_can( 'um_member' ) )

    …the user gets the UM membership access. But if you can explain why that approach cannot apply to UM and convince me. Then I’ll become more interested in learning UM inside and out. Plus encourage people to use it in-line with TwitchPress.

    Thanks
    Ryan

    • This topic was modified 7 years, 6 months ago by Ryan Bayne.
Viewing 1 replies (of 1 total)
  • Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hi @ryan-bayne,

    In the new 2.0 version of the Ultimate member, roles will be WP roles and you can check the capabilities e.g. current_user_can(‘um_member’);
    The 2.0 version will be available soon.

    Regards.

Viewing 1 replies (of 1 total)
  • The topic ‘Do UM roles have capabilities?’ is closed to new replies.