Vladimir Garagulya
Forum Replies Created
-
Add manually custom capability ‘view_admin_dashboard’. Then grant it to your role. This will allow to access admin dashboard without having critical access to the WooCommerce settings.
Forum: Plugins
In reply to: [User Role Editor] Administrator role missingFilter code should go to the active theme functions.php file or you may add it as as a separate .php file to the wp-content/mu-plugins/ folder as a Must Use plugin.
Forum: Plugins
In reply to: [User Role Editor] Bulk Edit via Sql?Hi,
WordPress stores role granted to a user at the wp_usermeta DB table. You may select all subscribers this way:
SELECT * FROM wp_usermeta WHERE meta_key='wp_capabilities' AND meta_value='a:1:{s:10:"subscriber";b:1;}';‘wp_’ is a DB prefix defined at the wp-config.php.
‘a:1:{s:10:”subscriber”;b:1;}’ is a serialized PHP array with 1 element key=’subscriber’ and value=boolean true. Pay attention on the length of string ‘subscriber’ – s: 10.
So if you need to replace roles for all subscribers to contributor you can use this command:UPDATE wp_usermeta SET meta_value='a:1:{s:11:"contributor";b:1;}' WHERE meta_key='wp_capabilities' AND meta_value='a:1:{s:10:"subscriber";b:1;}';Make a fresh backup copy of your database before to make any direct update. Just in case something will go a wrong way.
Forum: Plugins
In reply to: [User Role Editor] Administrator role missingThanks. You are right. I re-viewed the code and confirm:
‘administrator’ role is protected by default from single site administrators under WP multisite and this protection is not switched off by checkbox at the URE Settings, as it works for the single site installation.You may switch ‘administrator’ role protection using custom filter ‘ure_supress_administrators_protection’, just return TRUE from it, like here:
add_filter( 'ure_supress_administrators_protection', 'ure_supress_admin_protection', 10, 1); function ure_supress_admin_protection( $supress ) { return true; }- This reply was modified 5 years, 11 months ago by Vladimir Garagulya.
Forum: Plugins
In reply to: [User Role Editor] Custom Capabilities – tagURE shows under “Custom capabilities” group the capabilities which do not belong to WordPress itself, but added by the themes and/or plugins. So asked ‘tag’ capability may belong to some plugin. I can not tell you more.
Btw., screenshots are not available.
Forum: Plugins
In reply to: [User Role Editor] Capability by Woocommerce categoryHi,
It’s not possible to restrict orders by product category using user role and capabilities only.
Forum: Plugins
In reply to: [User Role Editor] Administrator role missingGo to the Network Admin->Options->User Role Editor->General and turn ON “Show ‘Administrator’ role” checkbox.
URE protects by default ‘administrator’ role and users with ‘administrator’ role from each other.Forum: Plugins
In reply to: [User Role Editor] Allow Product Review for a specific role ?What plugin offers “Product review” function?
Forum: Plugins
In reply to: [User Role Editor] I have a problem with Pedding AdministratorThis article may help.
Forum: Plugins
In reply to: [User Role Editor] Permission allowing access to all Buddypress GroupsI don’t have the answer on hands. Did you ask the question to BuddyPress developer, what permissions BP requires in addition?
Forum: Plugins
In reply to: [User Role Editor] Roles not workingIn order to edit post, role should have ‘edit_posts’ capability.
Redirection may be related to some plugin. Try to deactivate all and re-test activating them back one by one to isolate a source of redirection, then analyse how to resolve the issue.Forum: Plugins
In reply to: [User Role Editor] Automatically Assign a Secondary RoleIt depends from the plugin which assigns ‘Vendor’ role to the existing user.
Ask its developer if the plugin offers suitable hook using which you may add secondary role to the user, just after he gets ‘Vendor’ role.Forum: Plugins
In reply to: [User Role Editor] plugin removalI don’t understand what the plugin does in your WordPress account.
If you need to remove plugin from the site where you administrator, deactivate plugin and click ‘Delete’ link under it’s row at the ‘Plugins’ page.
Take into account that changes you made in user roles via URE plugin are permanent.If you need to hide URE from your site not-admin user account, revoke from its role capabilities started from ‘ure_’.
Forum: Plugins
In reply to: [User Role Editor] Access to Navigation MenuIt’s not possible to achieve via changing user roles only.
Such functionality is provided by additional modules included into Pro version.Forum: Plugins
In reply to: [User Role Editor] Autor can’t see broken links reportTop level ‘Tools’ menu in the admin menu is protected by ‘edit_posts’ and generally, it should be visible for user with ‘Author’ role until some plugin do not change it.
What plugin do you use to look broken links report?