Forum Replies Created
(Changed the required capability to ‘promote_users’ for my needs.)
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().
Frederik05/05/2017 at 07:53 in reply to: Unwanted dashboard redirect when 'settings-updated' is present #3680
Thanks Vladimir, works like a charm!04/05/2017 at 23:11 in reply to: Unwanted dashboard redirect when 'settings-updated' is present #3676
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.02/05/2017 at 10:52 in reply to: Unwanted dashboard redirect when 'settings-updated' is present #3656
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.