Vladimir Garagulya
Forum Replies Created
-
Forum: Plugins
In reply to: [User Role Editor] Media library and content blocksTry to disable all plugins and select WP default theme 2021, at the stage site copy if possible. Will it fix a problem? If Yes, activate plugins back one by one with a new test to isolate what plugin changes WordPress default behavior.
Forum: Plugins
In reply to: [User Role Editor] Media library and content blocksWhat about ‘upload_files’ capability? Is it granted?
Forum: Plugins
In reply to: [User Role Editor] Media library and content blocksHi TashWord,
1) upload_files – key user capability capability for access to the Media Library and “Add Media” button, edit_posts, edit_others_posts, edit_published_posts may be required for edit media library items, as the ‘attachment’ post type is defined with ‘post’ capability type by default.
2) “Global content blocks” plugin is not available at wordpress.org as “This plugin has been closed and is no longer available for download.”. I can say nothing about it.
Forum: Plugins
In reply to: [User Role Editor] manage no roleHi,
Post view access is realized separately. Usually you can select view options (including for not logged-in visitors) at the post editor page.
You can find related plugin here in plugin repository, or look at the content view access add-on included into URE Pro.
Forum: Plugins
In reply to: [User Role Editor] Give Shopmanager access to the Users menu in backendHi Michael,
shop_manager by default can ‘list_users’ capability, which allows him access to the “Users” page at the WP wp-admin. You can grant manually the other capabilities from the “Users” group and allow shop_manager to edit users, etc.
Take into account that WooCommerce makes visible for shop_manager the ‘customer’ role only by default. If you will wish to change this, look at this page.
Forum: Plugins
In reply to: [User Role Editor] User Role Gets Automatically changedHi,
Try to deactivate all plugins. If role changing stopped, activate plugins back one by one and make new test. This will allow to isolate a source of the problem.
Some plugin may do this automatically on every page request.Forum: Plugins
In reply to: [User Role Editor] Unable to edit of some of the usersI don’t have an idea at this point also.
Try to get comments from the UM plugin support, as UM settings is the source of the problem.
If you will not get a response, contact me directly via role-editor.com or support email and we will talk about further steps.
Forum: Plugins
In reply to: [User Role Editor] Unable to edit of some of the usersI can just suppose that something wrong was stored for the role at this field.
Try to remove all selections at the “Can edit these roles only” field for the “CQ Admin” role. Update role and test if use with “CQ Admin” role can edit all users after that. Then try to select some roles at this field for “CQ Admin” role again.
I hope that refreshing this field value will help.
Forum: Plugins
In reply to: [User Role Editor] Body ClassHi,
// Add current user role to the front end page body element add_action('wp_head', 'add_current_user_role_class'); function add_current_user_role_class() { if ( is_admin() ) { // do not show at back-end return; } if ( !is_user_logged_in() ) { return; } $user = wp_get_current_user(); $user_roles = array_values( $user->roles ); $role = array_shift( $user_roles ); ?> <script> document.addEventListener('DOMContentLoaded', function() { var body = document.body; body.classList.add('<?php echo $role; ?>'); }); </script> <?php }Forum: Plugins
In reply to: [User Role Editor] Unable to edit of some of the usersTry deactivate “Ultimate Member” temporally – to check what plugin settings does not allow to edit shown users.
Just in case, re-check if “CQ Admin” role has selected needed roles at “Ultimate Member -> User Roles->Can edit these user roles only”.
Forum: Plugins
In reply to: [User Role Editor] don’t find specific plugin in capabilitiesHi,
There is no easy way to override this. Plugin uses ‘manage_options’ capability directly, not via custom filter, as some other plugin do:
function admin_menu() { add_menu_page( 'WPClever', 'WPClever⚡', 'manage_options', 'wpclever', array( &$this, 'welcome_content' ), WPC_URI . 'assets/images/wpc-icon.svg', 26 ); add_submenu_page( 'wpclever', 'About', 'About', 'manage_options', 'wpclever' ); }Forum: Plugins
In reply to: [User Role Editor] Can we use it with PHP 8.0?Yes, you can use User Role Editor with PHP 8.0. You should not meet any critical problem.
Btw., if you discover any issue let me know. I will prepare a fix ASAP.
Forum: Plugins
In reply to: [User Role Editor] enable editor edit galleryWe discussed topic with author directly via email.
The gallery is provided by the “Traveler theme” by Shinetheme. Just in case it would be useful to someone:
– In the most of cases theme code checks the ‘manage_options’ user capability.Forum: Plugins
In reply to: [User Role Editor] don’t find specific plugin in capabilitiesHi,
This plugin protects its menu using WordPress built-in ‘manage_options’ user capability.
Forum: Plugins
In reply to: [User Role Editor] Pixel Your Site permissionHi Michele,
This plugin manages own access itself. Go to menu “PixelYourSite->Dashboard”, scroll it down and add your user role to the list of role at “Permissions” field.
PYS plugin applies this code on ‘admin_init’ action, and automatically adds/removes its own ‘manage_pys’ capability to/from allowed/not allowed roles:function manageAdminPermissions() { global $wp_roles; $roles = PYS()->getOption( 'admin_permissions', array( 'administrator' ) ); foreach ( $wp_roles->roles as $role => $options ) { if ( in_array( $role, $roles ) ) { $wp_roles->add_cap( $role, 'manage_pys' ); } else { $wp_roles->remove_cap( $role, 'manage_pys' ); } } }- This reply was modified 4 years, 8 months ago by Vladimir Garagulya.