Vladimir Garagulya
Forum Replies Created
-
Forum: Plugins
In reply to: [User Role Editor] find out right to choose for custom theme BE setctionHi Klaass,
WordPress admin submenu items are create by add_submenu_page function.
Try to search through the theme .php file for this keyword and look what capability is used for needed menu item.Forum: Plugins
In reply to: [User Role Editor] neue Berechtigung User Role EditorHello,
If I understood you right (according the Google Translate)…
You need to know what user capability plugin uses. Some plugins use WordPress built-in capabilities, like ‘manage_options’. So you will not see anything special for such plugins.Send the link to a plugin, if it’s available hew at wordpress.org.
Forum: Plugins
In reply to: [User Role Editor] admin cant add user multisiteHi,
In case of the similar issue, try to update this user profile. Will it restore the ability of administrator to add new users?
I suppose that user loses its user level meta data somehow.
Check this user meta data using this SQL command:SELECT * FROM wp_usermeta WHERE user_id=1 AND meta_key LIKE '%user_level';If general DB prefix is ‘wp_’, then for site ID=3, meta key will be ‘wp_3_user_level’. The value should be 10, but I suppose you will see 0.
Forum: Plugins
In reply to: [User Role Editor] Add capability for installed pluginIt’s difficult to say what capability plugin uses, without access to plugin itself. It may use some of existing WooCommerce capabilities, like ‘edit_products’, or add itself some own user capability.
You may search through the plugin .php files for the ‘add_submenu_page’ keyword and look in the function call parameters list, what capability protects mentioned menu items.Forum: Plugins
In reply to: [User Role Editor] How to let allow a role to edit other users’ profilesForum: Plugins
In reply to: [User Role Editor] Resetting to DefaultHi @atomweblabs,
Pay attention on the 1st menu item in the “Settings->User Role Editor->Tools tab”, not ‘Users’, but ‘Settings’.
Forum: Plugins
In reply to: [User Role Editor] Duplicate post regression for employer role job listingHi,
It’s a question more for the correspondent software developers.
From my side I can offer a workaround “Admin menu access” add-on included into Pro version. 1 month free test period is available.
Forum: Plugins
In reply to: [User Role Editor] Elementor – can’t edit after last update (4.3)Hi,
The recent update (4.63) should not be not related. I tested plugin for both PHP versions, 7.4.3 and 8.1.
Tested with Elementor 3.6.7 without problem. I suppose that issue is local to your environment. What if your deactivate URE at all? Does post edit page have JavaScript error messages in browser console? Check to what plugin that message belongs.
Forum: Plugins
In reply to: [User Role Editor] Somehow I can’t see list of options to put some permissionHi,
Look at the “Users->User Role Editor” page.
Forum: Plugins
In reply to: [User Role Editor] Metakey for ‘additional user’Hi,
Just in case this question is still actual or information will be useful for someone else.
URE uses existing WordPress database wp_usermeta table record.
Look at the wp-includes/class-wp-user.php, how it builds cap_key property:$this->cap_key = $wpdb->get_blog_prefix( $this->site_id ) . 'capabilities';Go through the code to see how to update this record:
update_user_meta( $this->ID, $this->cap_key, $this->caps );, and read it, like:
$value = get_user_meta( $this->ID, $key, true );WP stores user roles and capabilities list as a serialized PHP array. 1st element of the array (if it’s existed role) becomes a primary role, all the rest are the “Other roles”. Any string ID, which is not found at the existed roles list are the user capabilities granted directly to the user.
Forum: Plugins
In reply to: [User Role Editor] Disable Ability to Comment for User RoleI don’t have a solution for this.
WordPress manages access to the comments via settings, like ‘registered users only’. It does not use user capability to check if user is allowed to comment or not.
Forum: Plugins
In reply to: [User Role Editor] Uninstall this pluginHi,
No. All updates are saved directly over database record where WP stores user roles. These changes are permanent. You need to have DB backup. It’s possible to restore roles data on the state before URE 1st activation, via SQL tool. Read the part III of this article.
Did you ask User Registration Pro plugin support what capability they check to show new user profile fields to other users, not administrator one?
If you can not get response from them, I can search this information. Contact me at support[at-sign]role-editor.com
Forum: Plugins
In reply to: [User Role Editor] user promotion (change) limitsRequired feature is a part of the Pro version, as the Other role access add-on.
editable_roles filter is used to modify the list of available roles.
Hi Franck,
What plugin do you use in order to add new fields to user profile?