Forum Replies Created
-
AuthorPosts
-
VladimirKeymaster
Top admin menu bar items are the duplicates of the similar items from the main left side admin menu. So if use has access to the admin menu item, then he should have access to the similar item at the top admin menu bar.
If user does not have access to the main admin menu item, then you need to grant him such access, adding to a role a capability, which has administrator, but does not have this role.20/02/2023 at 03:07 in reply to: How to limit editing ability for a specific page to only a certain user #8177VladimirKeymasterYou may use the ‘Prohibit’ value for ‘What to do’ option at the profile page of the selected user. Specify, what pages he can not edit. So such user will can edit all other pages, which are beyond of the specified criteria.
15/02/2023 at 15:01 in reply to: Cannot create new post with restricted category and polylang enabled #8170VladimirKeymasterYou are right. I will re-check the 1st available category pre-selection, as it worked earlier.
15/02/2023 at 04:17 in reply to: Cannot create new post with restricted category and polylang enabled #8168VladimirKeymasterAt my test I added new post without problem, but can not assign category for translation until extended list of allowed categories by the translation categories ID.
I suppose that your allowed to edit only main language category. Translation for category has own ID. Add needed ID to the list of allowed categories ID.
VladimirKeymasterHi,
If you revoked from shop_manage role some capability, this change is permanent. It does not depend from the presence of User Role Editor Pro at your site. You may grant it back manually to solve this.
WooCommerce->Reports menu is protected by ‘view_woocommerce_reports’ capability.
WooCommerce->Orders menu is protected by ‘edit_shop_orders’ capability.
If role can these capabilities but still can not access these menu items, and URE deactivation does not help, that is you don’t apply some restriction via URE’s additional modules, then some another plugin may be involved. Try to deactivate all plugins except WooCommerce and test. If that helps, activate plugins back one by one to isolate a reason.VladimirKeymasterVladimirKeymasterIn the provided piece of code the key line is missed:
add_action('admin_init', 'user_profile_fields_disable');
It links your function to the hook which executes it.
Also pay attention that JavaScript code disables only input fields. It can not disable any other visible element. If you wish to hide some element on a page you should use another jQuery code, like
jQuery('#div_id').hide();
26/01/2023 at 03:51 in reply to: Not visible in Plugins, User Role Editor not showing in Users menu #8157VladimirKeymasterOK.
24/01/2023 at 17:57 in reply to: Not visible in Plugins, User Role Editor not showing in Users menu #8153VladimirKeymasterIs it possible to look on your site (development/stage copy preferred) with admin privileges? If Yes, send credentials to support [at-sign] role-editor.com
24/01/2023 at 16:41 in reply to: Not visible in Plugins, User Role Editor not showing in Users menu #8151VladimirKeymasterDoes your user have WordPress built-in ‘administrator’ role?
URE automatically grants full access to itself to the ‘administrator’ role and hides itself from other users with access to the plugins list, who don’t have ‘ure_manage_options’ capability.
VladimirKeymasterSend the link to a new code version to support [at-sign] role-editor.com
VladimirKeymasterHi,
Syntax error is at the prev line – missed closing bracket ‘)’ after (‘custom_role’). It should be:
if (current_user_can('custom_role')) { add_action( 'admin_footer', 'user_profile_fields_disable_js' ); }
24/01/2023 at 04:44 in reply to: Not visible in Plugins, User Role Editor not showing in Users menu #8146VladimirKeymasterHi Elizabeth,
You have to deactivate any active version of URE before try activate another one.
If you accidentally lost URE permissions – deactivation/activation of URE helps usually.VladimirKeymasterIf you will need further help, send or share via Google Drive a modified functions.php file. I will check its syntax.
VladimirKeymasterI see 2 possible problems in the code above:
1) Look if single quote “‘” is not replaced at your copy with other characters;
2) at the JavaScript code line
var fields_to_disable = ['role', 'facebook', 'twitter', 'additional_profile_urls', 'wp-user-avatar-existing,];
there is a syntax error. Replace the ‘,’ at the end with missed “‘” (closing single quote) character, like below:
var fields_to_disable = ['role', 'facebook', 'twitter', 'additional_profile_urls', 'wp-user-avatar-existing'];
-
AuthorPosts