Forum Replies Created
-
AuthorPosts
-
VladimirKeymaster
I do not have a solution to manage access to UI elements inside form editing page.
VladimirKeymasterMay be temporal networking problem or update server fault…
VladimirKeymasterVladimirKeymasterIt’s possible to update URE Pro as any other WordPress plugin. Read this article:
VladimirKeymasterHappy New Year!
Thanks for letting me know that you resolved the issue.VladimirKeymasterHi,
Did you grant to a role at least ‘read’ capability?
25/12/2019 at 12:30 in reply to: Restrict edit access to certain posts, but not that posts children. #6203VladimirKeymasterHi @zatakk,
Go to Users, find problematic user line and click ‘Capabilities’ link under it. Check if ‘edit_shop_orders’ capability is not assigned to a user directly, not via role. Revoke ‘edit_shop_orders’ from this user then.
“Admin menu” shows admin menu items for a role accordingly to the list of capabilities granted to that role. This is a reason why ‘Orders’ menu item is not shown for a role.
P.S. This topic is about another problem. It’s better to start your own topic for another question in a future.
VladimirKeymasterI made available Beta 3 version 4.54.1.b3, which includes the fix for issue you discovered. It’s available from Download page after login.
VladimirKeymasterThank you for this bug report. I reproduced the issue and work on the fix.
VladimirKeymasterI wrote answer in assumption that you create custom role with URE.
bbPress creates its roles on the fly, via code. So if you use some of bbPress filters to add your own role, it may be correct. If you use right filter, bbPress should show your role at its own roles drop-down lists. Try Settings->Forums->Roles to set bbPress your own default role for new registered users.
Or try to redefine bbPress default role using its ‘bbp_get_default_role’ filter:bbpress/includes/core/options.php:535: return apply_filters( 'bbp_get_default_role', get_option( '_bbp_default_role', $default ) );
VladimirKeymasterHi,
bbPress uses as a forum roles only its own built-in roles: bbp_participant, bbp_spectator, etc. bbPress processes them separately from other existing roles. Thus any other role with bbPress user capabilities is shown as a custom role, not a forum role.
It does not matter, as finally, user permissions are defined as a simple sum of user capabilities included into all roles granted to this user.
VladimirKeymasterHi,
Site admin can install needed language file for WordPress temporally changing site language at the Settings->General page. (Change language, update settings, change language back).
WordPress offers special filter ‘locale’, which allows to automatically change language according your own conditions. You may use code below as a starting point, change ‘author’ role to your own:
// Change site language for a role add_filter( 'locale', 'change_site_lang_for_role', 10, 1 ); function change_site_lang_for_role( $locale ) { if ( !is_user_logged_in() ) { return $locale; } $user = wp_get_current_user(); if ( !is_array( $user->roles ) ) { return $locale; } if ( in_array('author', $user->roles ) ) { $locale = 'de_DE'; } return $locale; } // end of change_site_lang_for_role()
VladimirKeymasterHi Paul,
Thank you for the information.
VladimirKeymasterDoes left side admin menu “Profile->Your profile” is available for your ‘editor’ role?
If ‘Not’, do you see ‘Admin menu” button at “Users->User Role Editor”.
If ‘Yes’, open “Admin Menu” for ‘editor’ role and check if you didn’t block “Profile->Your profile” menu item suddenly for ‘editor’ role.VladimirKeymasterHi,
Setup this code as Must Use plugin or add it to your active Theme. It leaves only 2 tabs at WC->Settings page: General and Payments. And replace ‘orders_manager’ role ID with your own one.
In order to leave Payments only, you need apply more programming efforts, replace link of WC-Settings menu from default one to
wp-admin/admin.php?page=wc-settings&tab=checkoutadd_filter('woocommerce_settings_tabs_array', 'change_wc_settings_tabs', 30); function change_wc_settings_tabs( $pages ) { $user = wp_get_current_user(); if ( in_array( 'orders_manager', $user->roles ) ) { //unset( $pages['general']); // General unset( $pages['products']); // Products unset( $pages['tax']); // Tax //unset( $pages['checkout']); // Payments unset( $pages['account']); // Accounts & Privacy unset( $pages['email']); // Emails unset( $pages['advanced']); // Advanced } return $pages; }
-
AuthorPosts