Vladimir Garagulya
Forum Replies Created
-
Capabilities are correct for the editing users purpose.
Yes, piece of code above does not allow to assign ‘shop_manager’ role to any user.
Yes it does not restrict a deletion of user with ‘shop_manager’ role.URE realizes a protection similar to one you need for WordPress built-in administrator user. So if you are PHP developer you can take it for the starting point –
user-role-editor/includes/classes/protect-admin.php.URE Pro includes “Other roles access” add-on, which allows for selected role to block access to the other roles and all users, which have blocked roles.
Forum: Plugins
In reply to: [User Role Editor] Editing PostsHi,
Look at this recipe.
URE Pro includes add-on which allows to block selected meta boxes at post editing page for the role.
Forum: Plugins
In reply to: [User Role Editor] User specific redirect Broken after installHi,
What plugin do you use for user specific redirects? Send link if plugin is available at wordpress.org
Forum: Plugins
In reply to: [User Role Editor] Only Admin has admin barTry to deactivate all plugins. Just in case some plugin hides admin bar.
Forum: Plugins
In reply to: [User Role Editor] Theme with article section “clones”Hi,
Detailed answer (why it works this way and what it’s possible to do) is available here.
Try to add this code to the active theme functions.php file or set it as a Must Use plugin:
add_filter('editable_roles', 'exclude_shop_manager_for_associate', 10, 1); function exclude_shop_manager_for_associate( $roles ) { $user = wp_get_current_user(); if ( in_array( 'shop_associate', $user->roles ) ) { if ( isset( $roles['shop_manager'] ) ) { unset( $roles['shop_manager'] ); } } return $roles; }Forum: Plugins
In reply to: [User Role Editor] Customise the author role for each userIt’s not possible with URE. As you mentioned, it does not allow to revoke from user capabilities which granted to him via assigned user role.
You can assign a role with minimal permissions, like subscriber, which allows access to the admin dashboard and own user profile only. Then grant additional capabilities directly to different users.Forum: Plugins
In reply to: [User Role Editor] Exporting & ImportingWordPress stores user roles data as a record at the wp_options database table. So you can export this record and import it to another database.
More details here. Take into account that you may need to change WordPress database prefix at the db table name and option_name field value. That is you may need use instead of ‘wp_user_roles’ something like ‘your_db_pref_user_roles’ if you set database prefix as ‘your_db_pref_’ instead of default ‘wp_’.Forum: Plugins
In reply to: [User Role Editor] Editing PostsHi,
‘edit_others_posts’ allows to edit post created by other user. User can only view posts from other users if he can not this user capability. WordPress built-in ‘author’ role is a good example of such permissions.
WordPress offers the only way with edited post moderation: user without ‘publish_posts’ and ‘edit_published_posts’, exactly like ‘contributor’ role has.
Any changes made to the published posts become available to the public immediately.It seems you need to look for a some plugin which will set custom scheme of post publishing.
Forum: Plugins
In reply to: [User Role Editor] Allow access to a single plugin for one userSBC plugin protects all its admin menu items with ‘manage_options’ user capability. You can not grant this permission to ‘subscriber’ role as it gives almost admin power. WordPress and the most of plugins uses ‘manage_options’ capability to protect its settings.
Forum: Plugins
In reply to: [User Role Editor] Not accepting default user roleHi,
If you use ‘WooCommerce’, then it overwrites WordPress default role value for new registered user with a ‘customer’ one.
Check as admin if user (his role) still has at least ‘list_users’, ‘edit_users’ capabilities. If ‘Yes’, try to deactivate all plugins. If it will help, activate plugins back one by one in order to isolate a conflict.
Btw., I’m sure that the latest version 4.56.1 does not contain any code to change access to the ‘Users’ admin menu or actions available for the selected user at the ‘Users’ page.
Forum: Plugins
In reply to: [User Role Editor] Allow access to a single plugin for one userHi,
It depends from what user capabilities are used by a single plugin. Send a link to plugin here, if it’s available at worldpress.org/plugins
Forum: Plugins
In reply to: [User Role Editor] new user doesn’t appear in dropdown list of AuthorHi Tushar,
Add to your role the 0, 1, 2 levels from the ‘Deprecated’ group, similar to ‘author’ role has. More details here.
- This reply was modified 5 years, 8 months ago by Vladimir Garagulya.
Forum: Plugins
In reply to: [User Role Editor] ShinePHPFixed.