Vladimir Garagulya
Forum Replies Created
-
Forum: Plugins
In reply to: [User Role Editor] Bug – rename rolesCan you guess by the name of a role, which is not renamed, to what plugin it belongs? Send the link, if that plugin is available at wordpress.org
Forum: Plugins
In reply to: [User Role Editor] Bug – rename rolesIt works on my test. Some plugins create roles dynamically for every page opening. Just to be sure that it is not your case, try to make the same with a new manually added role. Will it work?
Forum: Plugins
In reply to: [User Role Editor] Is It User Role Editor Causing This Problem?Try to use
if ( in_array('vendor', $wcv_profile_info->roles ) ) {instead.
- This reply was modified 4 years ago by Vladimir Garagulya.
Forum: Plugins
In reply to: [User Role Editor] Plugin activation not possibleWhat PHP version is installed at your site?
Do you see any related error/warning messages in server log files?Forum: Plugins
In reply to: [User Role Editor] Translating custom user rolesIt would be good, if you can test development version. It’s available from the dropdown list at the bottom of this page.
Forum: Plugins
In reply to: [User Role Editor] How do you find this plugin in the database?Little update: record with option_name ‘wp_user_roles’ belongs to WordPress itself. ‘wp_’ here is the database prefix defined at wp-config.php
Forum: Plugins
In reply to: [User Role Editor] Resetting to DefaultHi,
You can go to the “Settings->User Role Editor->Tools tab”, input “Permanently delete all custom user roles and capabilities” to the text input field and click “Reset”. You will receive 5 WordPress default roles as it was just after setup: administrator, editor, author, contributor, subscriber. Absolutely ALL changes made manually or by plugins will be rolled back.
Make a fresh database backup before use this tool. Just in case the result will be finally not one you would wait.
Forum: Plugins
In reply to: [User Role Editor] Role can’t add menu items to their menuthey cannot add links from that custom post type to their menu. The option doesn’t show up on the left-hand side when editing their menu.
All custom post types except WP built-in ‘page’ and ‘post’ are hidden by default. In order to see needed post type here user have to go to the “Screen Options” at the top right corner of the page and turn ON a checkbox for needed custom post type.
Forum: Plugins
In reply to: [User Role Editor] Role can’t add menu items to their menuthey cannot add links from that custom post type to their menu
Just in case, try to test with ‘edit_posts’ and/or ‘edit_pages’ capabilities granted.
Forum: Plugins
In reply to: [User Role Editor] Role can’t add menu items to their menuURE allows to delete role which not granted to any user. 1st, revoke role from all users. Then use “Delete Role” at URE.
P.S. Please use dedicated forum at role-editor.com for the questions related to Pro version.
Forum: Plugins
In reply to: [User Role Editor] “View as” capabilityAccording to the quick look at the older version 1.2.1 source code of BuddyBoss plugin, ‘View As’ link is available to user in 2 cases:
1) if he can ‘switch_users’ capability;
2) if he has ‘edit_users’ capability and (has permission to) edit the selected user.Forum: Plugins
In reply to: [User Role Editor] “View as” capabilityHi,
It depends from the plugin which adds such action link, if it uses something special. Usually, similar links under user row are protected by ‘edit_users’ WordPress built-in capability.
What plugin adds ‘View As’ link in your case?
Forum: Plugins
In reply to: [User Role Editor] Hide user role from Dropdown selectionReplace function body with this version:
$user = wp_get_current_user(); if ( is_a( $user, 'WP_User' ) && in_array( 'administrator', $user->roles ) ) { return $roles; } if ( isset( $roles['administrator'] ) ) { unset( $roles['administrator'] ); } return $roles;Forum: Plugins
In reply to: [User Role Editor] Hide user role from Dropdown selectionDo not forget to add current user role checking in order do not hide role for the superadmin also.
Forum: Plugins
In reply to: [User Role Editor] Hide user role from Dropdown selectionHi,
Try ‘editable_roles’ filter, like below:
add_filter('editable_roles', 'exclude_admin_role'); function exclude_admin_role( $roles ) { if ( isset( $roles['dailyadmin'] ) ) { unset( $roles['dailyadmin'] ); } return $roles; }