Vladimir Garagulya
Forum Replies Created
-
Where do you use ‘editor’ role? Show code example.
Forum: Plugins
In reply to: [User Role Editor] WoocommerceTo allow access to the admin back-end add ‘view_admin_dashboard’ user capability to the user role. This capability does not exists by default, you need to create it manually. Read this article for more details how wp-admin is blocked by WooCommerce.
Forum: Plugins
In reply to: [User Role Editor] unfiltered_html not working as expectedI re-tested and confirm URE overrides WP5’s default restriction of ‘unfiltered_html’ capability for multisite configuration. But you should not have DISALLOW_UNFILTERED_HTML constant defined.
URE replaces “do_not_allow” back to ‘unfiltered_html’ via map_meta_cap filter.
I even tested with WordFence plugin together in assumption that it may be related, but the feature still works as expected.So I can not repeat the issue. Try temporally deactivate all plugins. Will it change something?
Forum: Plugins
In reply to: [User Role Editor] Edit posts only for few daysHi,
URE plugin will not help with this. It does not include such feature.
You need to use custom code. I don’t have working code for this purpose to share.When you assign to a user multiple roles all capabilities from those roles are granted to a user. It’s easy to check – click ‘Capabilities’ link under the selected user at the ‘Users’ page.
If you see something different – some other plugin may be involved. Try deactivate all plugins and re-test.
Forum: Plugins
In reply to: [User Role Editor] Custom CSS for User Role?User with ‘editor’ role can not edit themes source code.
If you write about using CSS at the posts/pages, then ‘unfiltered_html’ capability should allow that.
Forum: Plugins
In reply to: [User Role Editor] permission to manage commentsHi,
The main permission for access to the comments is ‘edit_posts’. If user can edit the post, then user can moderate comments for this post. So ‘edit_published_posts’ and ‘edit_others_posts’ capabilities may be needed too.
I had investigated how WordPress uses ‘moderate comments’ capability some time ago. Read this post if your are interested.
Forum: Plugins
In reply to: [User Role Editor] Keep moderation for ContributorI don’t have any recommendations.
Forum: Plugins
In reply to: [User Role Editor] JS error in users.jsOK. Thank you.
Forum: Plugins
In reply to: [User Role Editor] JS error in users.jsHi Apple,
Thanks for the report. Does user have ‘edit_users’ capability and sees this error when try to open “Users” page?
Forum: Plugins
In reply to: [User Role Editor] WoocommerceRevoke ‘manage_woocommerce’ capability from a role.
WooCommerce – manage_woocommerce
Orders – edit_shop_orders
Coupons – edit_shop_coupons
Reports – view_woocommerce_reports
Settings – manage_woocommerce
Status – manage_woocommerce
Extensions – manage_woocommerceForum: Plugins
In reply to: [User Role Editor] My administrator role doesn’t show on my user accountTry to deactivate User Role Editor. If a problem will still be there, URE is not involved to it.
Forum: Plugins
In reply to: [User Role Editor] Keep moderation for ContributorUser Role Editor plugin will not help to force moderation for users who can edit and publish. There is no such logic in WordPress by default.
Forum: Plugins
In reply to: [User Role Editor] How to make a user access a plugin?WP Booking system uses ‘manage_options’ capability by default for all its menu items.
It’s possible though to replace ‘manage_options’ with some other capability using the filter ‘wpbs_menu_page_capability’. Like this:
add_filter('wpbs_menu_page_capability', 'change_wpbs_menu_cap', 10, 1); function change_wpbs_menu_cap( $cap ) { $cap = 'some_other_cap'; return $cap; }Similar change for submenu items is more complex. Simple editing existing user roles will not help. It’s better to ask support at the WPBS plugin developer.
Forum: Plugins
In reply to: [User Role Editor] Let authors/editors publish everything but their own postsDesired model is not possible within WordPress built-in post publishing scheme.
WordPress uses “pending” state only for users who can not publish and can not edit already published posts.Custom code or plugin is needed to achieve your purpose. Changing roles with User Role Editor will not help.