Hide WooCommerce data from other admins in Wordpress? - wordpress

I have to create an admin user for a marketing company in my Wordpress website but I do not want them to have access to WooCommerce data. In other words, they should not be gain information regarding sales data, customer names, email, address and so on. However, they need to have access to themes and plugins.
Is there a way to hide WooCommerce data from admin view or create a user account with all the admin privileges except WooCommerce access?
Please help,
Thank you

You could create a new role in code and add specific capabilities to it. But it's much easier to use a role editor plugin like User Role Editor
Just create a new role and assign the capabilities you want while leaving out those of Woocommerce.

Related

Wordpress remove menus users.php leave only Profile

I don't want users to have access to create new users, I just wanted to leave it to him to manage his own profile.
The ideal was to leave only Profile.
you suppose to change user role to subscriber only and also you can user remove_cap wordpress function to remove capabilities from user.
below link my help you to resolve issue
https://developer.wordpress.org/reference/classes/wp_role/remove_cap/

Woocomerce Dashboard to user

Is there a way for the user to have a dashboard to able to add/edit products, view reports and orders of his store without access to WordPress admin?
i don't need to let him access to WordPress panel or admin panel to do that. so am checking if there is a customized dashboard for that
Check this, your issue will be solved, WordPress User Role and Capabilities and WooCommerce Shop Manager role and capabilities
Just create another user and restrict it's access permission from your admin.
He will just manage the products with a customized dashboard only what you'll allow.

How to have two registration forms in WooCommerce? one for regular customer and two for membership

As per subject line, I want to have two forms in my WordPress website that has a WooCommerce store integrated. I want one of the form(billing form) as a default and two for membership. I am using YITH WooCommerce Subscription plugin for subscription.
Please let me know if you have any questions. Thanks.
You can build your own regular form either in a page template and add create user processing code logic in there or using Gravity Form plugin with its User Registration add-on.
For subscriptions, you can set up the subscript products and when users go to the checkout place, WooCommerce Subscription plugin has the option in the backend to create users on buying products. I think it's checked by default. If not, go to the checkout tab of the WooCommerce settings.

Wordpress - restrict access to certain post types

I have a Wordpress site that the client wants to set a couple of users up on, purely for creating, editing and deleting blogs. They want to assign these users the 'author' role and when they log into the admin area, they only want them to see the post type 'posts'. They do not want them to have access to media or any other custom post types. Does anyone have any ideas on this please?
User Role Editor plugin (https://wordpress.org/plugins/user-role-editor/) has always served me well in cases like that.
As the description says: User Role Editor WordPress plugin makes user roles and capabilities changing easy. Edit/add/delete WordPress user roles and capabilities.
Sounds like the Groups plugin is what you're looking for here. I don't think that functionality is possible within stock Wordpress.
This allows you to further segregate users and permissions, restricting to posts, etc.

Product management for wordpress

Hi I wanted my wordpress site putting user role for product I want the user1 can only see and count the product he uploaded and he cannot see the other product uploaded by the other user is there a free plugin for that in wordpress ?
try to use this
https://wordpress.org/plugins/user-role-editor/
this allow to add various capability to the user, may it will help?

Resources