• Resolved davidblood

    (@davidblood)


    Hi,

    Is it possible to remove the toolbar from non-admins? I’ve “Block all users with the Subscriber role from accessing the Dashboard.” and “Hide the Toolbar from all users with the Subscriber role.” checked in Memberships > Settings > Advanced but they still see this on the main site and access the /wp-admin page.

    This functions.php edit no longer works.

    Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Andrew Lima

    (@andrewza)

    Hi @davidblood

    Thank you for reaching out to Paid Memberships Pro.

    Some other plugins may add the WordPress toolbar to WordPress and override these settings. Plugins like BuddyPress (or any other plugin that may add custom menu items to the bar could interfere here).

    Can you let me know if this is the case? Also, what version of Paid Memberships Pro are you using?

    Thread Starter davidblood

    (@davidblood)

    Hi @andrewza,

    I don’t use BubbyPress personally.

    I use the following plugins:
    Pricing Table
    Anti-Spam
    Autoptimzie
    Insert Headers and Footers
    WP Mail SMTP

    PMP Plugins:
    Administrator Access to PMPro Protected Content [third party] v1.3
    Connect Paid Memberships Pro to Discord [third party] v1.0.5
    Paid Memberships Pro Version 2.6.5
    Paid Memberships Pro – Register Helper Add On v1.7
    Paid Memberships Pro – Roles Add On v1.4.1
    PMPro Customizations v.1

    Looked through every plugin setting and none of them seem to mention toolbar/menus other than PMP via Advanced tab.

    Thanks!

    Plugin Author Andrew Lima

    (@andrewza)

    Thank you for the feedback, I see you are using the Roles Add On can you confirm the user’s in question have subscriber role (or multiple/custom roles)?

    I have tested this on my end and I am unable to replicate it while with the subscriber role.

    Thread Starter davidblood

    (@davidblood)

    Hi @andrewza,

    Yes, I can confirm all members have the subscriber role + the paid member role.

    They share the same perms minus the paid role is ad-free and subscriber has ads.

    Using User Role Editor, can you confirm the field for toolbar? The only granted perm is “read”

    Thanks.

    Same here:
    if a member has the role subscriber + a PaidMemershipPro role, the Dashbord bar is showing up regardless if you block it in Advanced Option.
    Would be very very nice to also block individual role combinations.

    Plugin Author Andrew Lima

    (@andrewza)

    You may use the filter ‘pmpro_hide_toolbar’ to adjust the custom requirements needed.

    This may be a minor bug when a member holds multiple roles as it should hide if the user has the subscriber role – https://github.com/strangerstudios/paid-memberships-pro/blob/4812f157e759a38b2d22cf56be728cc00592af07/includes/menus.php#L242

    I have passed this onto our development team to investigate further and resolve.

    Thread Starter davidblood

    (@davidblood)

    Hi,

    For me pmpro_hide_toolbar is not listed as a capability.

    I was able to resolve this myself. @savenemo

    Although I couldn’t see the granted table via user role editor it seems it’s actually a setting at the bottom of the page tucked away – it’s not in the list of perms.

    Screenshot (zoomed out of page to fit it all!): https://uploadir.com/u/lbwnruod

    Checking this resolved the issue for me for users. Not sure if this applies to you (sounds like you aren’t using the USE plugin so probably not).

    Cheers

    • This reply was modified 3 years, 3 months ago by davidblood.
    Plugin Author Andrew Lima

    (@andrewza)

    Thanks for sharing your solution @davidblood, that will definitely work too.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘WordPress Toolbar’ is closed to new replies.