Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: Custom User Edit Page #3738
    Oxfam
    Participant

    Works great!

    (Changed the required capability to ‘promote_users’ for my needs.)

    in reply to: Custom User Edit Page #3733
    Oxfam
    Participant

    Hi,

    Just a quick related question:

    Update: Core version: “Users->Grant Roles” button worked only for superadmin or user with ‘ure_manage_options’ capability. User with ‘edit_users’ can use this feature now.

    I noticed this issue, good to see it will be resolved! However, would it be possible to hide the “Grant Roles” button if the user has no rights to use it, to keep things clean and simple?

    I have a custom role with none of the capabilities mentioned above, but still they see the button … As far as I can tell from the 4.34.1 code there is no limitation on show_grant_roles_html().

    Greetings,

    Frederik

    Oxfam
    Participant

    Thanks Vladimir, works like a charm!

    Oxfam
    Participant

    Sorry for the delay! This isn’t a public plugin, it’s just a page I built to set some custom WordPress options (check content here). So the latter solution seems to be the way to go :). I’d be happy to use the filter.

    Oxfam
    Participant

    Hi,

    Holidays aren’t in WooCommerce core so it is a custom option page: /wp-admin/admin.php?page=oxfam-options. This page can be reached by people with the local_manager capability (as defined in the add_menu_page() function) but /wp-admin/admin.php?page=oxfam-options&settings-updated=true is redirected to the dashboard.

    F.

Viewing 5 posts - 1 through 5 (of 5 total)