Forum Replies Created
-
AuthorPosts
-
VladimirKeymaster
Hi Herbert,
Thanks for the feedback.
I do not have a solution for the access restrictions problem with WP App right now. I will investigate it and try to offer the solution ASAP.
VladimirKeymasterIn relation to the screenshots with capabilities:
– Is it possible that you have different set of plugins activated on these sites?VladimirKeymasterIn order to remove ‘Emails->Customize’ menu item use this code:
add_action('admin_menu', 'my_remove_buddypress', 20); function my_remove_buddypress() { if (current_user_can('your-own-role')) { remove_submenu_page('edit.php?post_type=bp-email', 'bp-emails-customizer-redirect'); } }
VladimirKeymasterHello,
I confirm the bug with menu items similar to BuddyPress. It’s fixed at upcoming version 4.23.3. I plan to publish it in a couple of days.
VladimirKeymasterOrders menu is protected by ‘edit_shop_orders’ capability. It’s possible to prohibit new order creation if you activate ‘create’ capability at User Role Editor Settings.
But ‘edit_shop_orders’ capability is enough to ‘process’ and ‘complete’ the order. The only way to allow a read-only access to the WooCommerce orders is to use this filter from WooCommerce code:
$actions = apply_filters( 'woocommerce_admin_order_actions', $actions, $the_order );
Your function for this filter should return empty $actions array for ‘editor’ role in order to make for them read-only access.
Let me know if you need further help.
VladimirKeymasterHi,
I have to postpone this issue investigation for 1-2 days.
VladimirKeymasterI will extend ‘Bulk Access Edit’ to the custom post type with a next update (approximately this week).
Category/taxonomy id filter should work already for custom post types and pages (if you linked categories to them).
VladimirKeymasterHi,
Could you provide ACF Pro copy for testing? Send zip to the support email. I guarantee that it will be installed it only locally and for testing purpose.
VladimirKeymasterJawad,
I found and fix the reported issue with PHP notice from admin-menu-access.php. I will publish it with the next update in 1-2 weeks.
VladimirKeymasterHi Jawad,
Thanks for the feedback. I very appreciate your help in making URE Pro better.
I can repeat the PHP notice from the admin-menu-access.php using your recent information.
I will develop a fix.VladimirKeymasterHi Jawad,
This post describes how to use
woocommerce_duplicate_product_capability
filter.What settings did you make in “Admin Menu” for the “Vendor” role, for which PHP notices are generated? Please show a screenshot.
VladimirKeymasterHi Jawad,
Metaboxes:
1) I found a bug in URE Pro with WC Vendors activated. Quick fix:
open user-role-editor-pro/includes/pro/classes/meta-boxes.php
and replaceupdate_meta_boxes_list_copy()
function at line #33 with this versionpublic function update_meta_boxes_list_copy() { global $wp_meta_boxes; if (empty($wp_meta_boxes) || self::$meta_boxes_list!=null) { return; } self::$meta_boxes_list = get_option(self::META_BOXES_LIST_COPY_KEY, array()); foreach($wp_meta_boxes as $screen=>$contexts) { foreach($contexts as $context=>$priorities) { foreach($priorities as $priority=>$meta_boxes) { foreach($meta_boxes as $meta_box) { if (empty($meta_box) || !isset($meta_box['id'])) { continue; } $mb = new StdClass(); $mb->id = $meta_box['id']; $mb->title = $meta_box['title']; $mb->screen = $screen; $mb->context = $context; $mb->priority = $priority; $mb_hash = md5($mb->id . $mb->screen . $mb->context); self::$meta_boxes_list[$mb_hash] = $mb; } } } } update_option(self::META_BOXES_LIST_COPY_KEY, self::$meta_boxes_list); } // end of update_meta_boxes_list_copy()
where this condition was added:
if (empty($meta_box) || !isset($meta_box['id'])) { continue; }
After this reopen Coupon editor page and you will find at User Role Editor -> Meta Boxes needed metaboxes from Coupon editor page.
Revolution Slider adds its options meta box for the posts only by default. So I can not test it myself for coupons. I suppose that some plugin or theme makes that at your installation. But URE processes a ‘Revolution Slider Options’ meta box from post editor normally, so you should see it for coupons too.
Let me know the result. Thanks.
VladimirKeymasterHi,
Plugin is fully functional and don’t need additional activation. Valid license key allows to get automatic updates from role-editor.com. Without Internet connection you have to update it manually.
VladimirKeymasterThanks for letting me know.
VladimirKeymasterHi Jawad,
1) By default WooCommerce allows to duplicate products to the user with ‘manage_woocommerce’ capability. User without this capability does not see the ‘Duplicate’ link. I think that if user should have read-only access to the Products, then ‘manage_woocommerce’ is not required for him. So remove it from his role.
If you need to change this capability to the custom one, you may use'woocommerce_duplicate_product_capability'
filter for that.2) I do not have any meta boxes except ‘Coupon Data’ with WooCommerce and Rev. Slider only installed. I suppose you have some other active plugin, which adds sections from the screenshot to the Coupon editor page. I need to know what plugin does that.
3) Try to deactivate/activate back user role editor plugin. Open User Role Editor – ‘Admin Menu’ for that role and re-save it.
-
AuthorPosts