Forum Replies Created
-
AuthorPosts
-
Vladimir
KeymasterHi,
Show screenshot with example of Content View Restrictions settings for product page, which does not work.
Vladimir
KeymasterCode for membership_manager role only will be looked this way:
add_filter( 'woocommerce_disable_admin_bar', '_wc_disable_admin_bar', 10, 1 ); function _wc_disable_admin_bar( $disable ) { $user = wp_get_current_user(); if ( !is_a( $user, 'WP_User') || !is_array( $user->roles ) ) { return $disable; } if ( !in_array( 'membership_manager', $user->roles ) ) { return $disable; } return false; }
Vladimir
KeymasterRead this article. Look if it’s related to your task and code below may help you:
add_filter('woocommerce_disable_admin_bar', '_wc_disable_admin_bar', 10, 1); function _wc_disable_admin_bar($prevent_admin_access) { return false; }
Vladimir
KeymasterIf you have other plugins which use ‘manage_options’ you may block admin menu items created by those plugins using Admin menu blocking add-on.
Vladimir
KeymasterI hope disabling all the options to limit my VAs is secure for the website
Login under restricted user and try input to the browser a link so any blocked admin menu item. You will see that user can not access it. URE will redirect user to the 1st available admin menu item.
I recommend though, revoke from a role all unneeded capabilities 1st and use admin menu blocking add-on only after that step.
Vladimir
KeymasterThanks for the good feedback.
Look at the edit restrictions add-on.
You can set “Own data only” option for this user.
In general, user with active edit restrictions will see only posts/pages which he can edit.Vladimir
KeymasterYou license key is active. Try to take it from your account page and input again to URE’s settings page.
I did not find any compatibility issues with PHP 7.3. Both versions of URE should be compatible.
Vladimir
KeymasterActivate this add-on and open “Admin menu” at URE for ‘administrator’ role. Look what capability protects menu of that plugin. Grant that capability to a role, which will work with that specific plugin.
Vladimir
KeymasterIs ‘upload_files’ capability granted to a role?
Vladimir
KeymasterI got this error: http://www.cob.org’s server IP address could not be found.
I will try again later.
Vladimir
KeymasterI need to look at your setup. If that’s possible, send URL and admin credentials to support [at-sign] role-editor.com
Vladimir
KeymasterThank you for suggestions.
Unfortunately, we did not make yet any step forward in this direction. We even exchanged with WPMF developer by couple of messages, but without visible result :).
If you can again share with me the latest version of WPMF (via DropBox or Google Drive), I will look if WPMF includes any hooks to filter Media Library items it shows. I don’t promise a quick progress though.
Vladimir
KeymasterThank you for the suggestions. I will take them into account for further development.
04/02/2020 at 03:48 in reply to: How to prevent protected pages to be listed on parent pages ? #6609Vladimir
KeymasterHi,
Set ‘access error action’ for page B to ‘404 HTTP error’. This option excludes page from all WordPress listings.
Vladimir
KeymasterGenerally to check needed permissions for admin menu item: open “Admin menu” for the ‘Administrator’ role and look at the “Capability” column for the menu item.
Some plugins may use conditional check before create admin menu – if user has administrator role. I need access to the source code of plugin in order to look what permissions it requires. If you need further help share plugin’s .zip via Google Drive or DropBox (support [at-sign] role-editor.com ).
-
AuthorPosts