Vladimir Garagulya
Forum Replies Created
-
Forum: Plugins
In reply to: [User Role Editor] Customer Service AccessHi,
Try new custom role as a copy of the “Shop Manager” role, but revoke from it all critical capabilities. Start from ‘manage_woocommerce’ one, which give acceess to the WC Settings. Grant to this role ‘view_admin_dashboard’ user capability if WC will start redirect user to front-end.
Forum: Plugins
In reply to: [User Role Editor] “freeze” specifics categoriesHi,
URE (including Pro) does not offer such functionality.
You can fully prohibit categories editing – revoke ‘manage_categories’ from a role. User will still can assign selected category to a post, but can not edit/delete theme.
Forum: Plugins
In reply to: [User Role Editor] 2 Problems1) Revoke from a role the ‘manage_woocommerce’ capability.
If user will be redirected automatically to front-end, grant him ‘view_admin_dashboard’ capability (may be needed to add it manually).
2) All In One WP Migration uses these user capabilities ‘export’, ‘import’. Where do you see a problem?Take into account – not URE gives access to admin menu items, but WordPress looks what capabilities current user can and gives access to admin menu.
- This reply was modified 5 years, 9 months ago by Vladimir Garagulya.
Forum: Plugins
In reply to: [User Role Editor] Question regarding update 4.56Hi,
No. This function was added not as security fix, but more as a helper.
It automatically grants to the administrator role new added WordPress built-in capabilities without need to write a special code for this purpose. If some plugin added role with custom capabilities, administrator will get them too, etc.
And, yes, if for some reason some critical capability was revoked from administrator role, it will be granted back.Forum: Plugins
In reply to: [User Role Editor] Would User Role Editor help me in that situation?Thanks for the clarification.
Yes, Using URE you can create absolutely identical (by granted capabilities) roles, just with different ID and names.
Forum: Plugins
In reply to: [User Role Editor] Would User Role Editor help me in that situation?Hi Laurent,
URE (free version) does not have functionality for conditional output.
URE Pro offers shortcode, which can show text (including HTML) inside for the role(s) listed in the shortcode parameters. If current user does not have that role, then text is not shown.
Forum: Plugins
In reply to: [User Role Editor] User role editor is not workingGive me the details what part of URE do you use to assign role to a user? Screenshots will be helpful.
Can you under the same user edit users and assign them role via user profile using WP built-in “Role” drop-down list?
Forum: Plugins
In reply to: [User Role Editor] Hide Additional CapabilitiesApply this code via active theme functions.php file or Must Use plugin. Just change ‘user-manager’ role to your own one:
add_filter('ure_show_additional_capabilities_section', 'ure_show_additional_capabilities_section'); add_filter('ure_bulk_grant_roles', 'ure_show_additional_capabilities_section'); function ure_show_additional_capabilities_section($show) { $user = wp_get_current_user(); if (in_array('user-manager', $user->roles)) { $show = false; } return $show; } add_filter('ure_users_select_primary_role', 'ure_users_select_primary_role', 10, 1); function ure_users_select_primary_role($select) { $user = wp_get_current_user(); if (in_array('user-manager', $user->roles)) { $select = false; } return $select; }Forum: Plugins
In reply to: [User Role Editor] Uninstall PluginDeactivate URE and click “Delete” under its row at the “Plugins” page. URE should delete all records it added to the database.
Changes made to the record with user roles are permanent.Forum: Plugins
In reply to: [User Role Editor] Ultimate MemberUltimate Member protects all its menu items with ‘manage_options’ user capability.
Forum: Plugins
In reply to: [User Role Editor] Problem with plugin I need know before of buyThe issue is related to the fact that these custom post types can use the same default capability type ‘post’ and be protected by the same list of user capabilities, e.g. the WordPress built-in ‘posts’ uses: edit_posts, etc.
More details here.Forum: Plugins
In reply to: [User Role Editor] Lost capabilities in UsersHi,
The latest version of URE does not include any related changes.
Try to deactivate all plugins and make another test. Will it help? Then activate plugins back one by one to isolate a conflict.
Forum: Plugins
In reply to: [User Role Editor] Delete / Export Personal DataHi,
WordPress automatically maps user capabilities for this admin menu items to ‘manage_options’ capability.
case 'export_others_personal_data': case 'erase_others_personal_data': case 'manage_privacy_options': $caps[] = is_multisite() ? 'manage_network' : 'manage_options'; break;If you wish to change this, try to re-map via ‘map_meta_cap’ filter:
return apply_filters( 'map_meta_cap', $caps, $cap, $user_id, $args );Forum: Plugins
In reply to: [User Role Editor] WooCommerce – Showing only Order MenuStrange. It really should show ‘Orders’ menu. I have made own test for this purpose.
Just to exclude possible conflicts, try to deactivate temporally all other plugins except WooCommerce.Forum: Plugins
In reply to: [User Role Editor] Deprecated use of strpos()Thank you.
P.S. It’s recommended to use a dedicated forum at role-editor.com for any future reports related to Pro version.