Limit User Access
I'm trying to limit user access to not let him edit product data, such as weight, price, measurements...
I installed the Ultimate Dashboard Plugin and even managed to remove this direct access, letting him see only the orders page, because that's what I want him to have access to.
But when you open the order, he can still access the product through the order link.
Please is there any way I can disable this possibility?
You can achieve that by using the User Role Editor plugin. You can create a custom role there and uncheck the "Edit Product" capability.
Once you created the new custom role, you should go to the "All Users" page from the left admin sidebar, then find the user that you want to prevent editing the products and change its role to the new role that you created with the plugin.
Here is the documentation and examples:
http://shinephp.com/user-role-editor-wordpress-plugin/
Related
Once this user is created by an admin role.
My goal is to give this wordpress user only access to his/her posts - can view, add , update or delete in Wordpress admin.
My goal is to create a wordpress user that can view, add , update or delete in Wordpress admin.
I DO NOT want to use plugins
I want the user to be able to access only the ids it creates in multiple custom post types. say user x is setup, he can only work with his posts (ids) in custom post types (say: businesses, products, orders)
I don't usually do this, but you may be better off just using a Role Editor plugin like User Role Editor. The alternatives would be to give the Roles & Capabilities documentation a read, and decide if it's better to modify an existing role, or creating a new role and give it the select permissions you want.
For instance, you'd probably want to create a new role based on the editor role, and remove all of the {blank}_others_{blank} capabilities, such as edit_others_posts, delete_others_posts, etc.
If you do go the programatic way instead of plugin, note that the Roles & Capabilities are stored in the database, so you don't need to include the function that creates/modifies them on every load like the init hook. If you do put it on a hook like that, you'll probably want to set a flag of some sort (like with update_option()) and abort if the new role/cap hasn't been changed since it was last run.
You are able to do this using the Author role.
https://en.support.wordpress.com/user-roles/
Author
An Author can create, edit, publish, and delete only their own posts, as well as upload files and images. Authors do not have access to create, modify, or delete pages, nor can they modify posts by other users. Authors can edit comments made on their posts.
Within a CPT set the capability type to post.
'capability_type' => 'post'
Currently I'm looking for a way to give access to the subscribers list which is belongs to the Leaky Paywall plugin.
The main goal is that when the editor (3333) will login then he should have access the subscribers list like the administrator has since here the administrator has the option to edit the subscriber's information on admin area. I need to give same access for that specific editor so that he can edit all the informations for any subscriber from the list.
There are 2 ways to do this.
1. Let Editor to manage users. Here is an article you try: let editor manage users
2. Create custom create custom user role, and add capabilities to this custom user role so that it can manage subscriber list. Basically, you can just combine https://codex.wordpress.org/Function_Reference/add_role and example from 1.
For example: let's say your new user role is user_manager. When editor (3333) will login assign him/here to user_manager so that he/she will have editor capabilities and also can manage subscriber lists.
I will really recommend to user option 2.
I want to add 2 types of users in my wordpress website.I've read this post , but it's not providing any free method.
Multiple User registration forms for different types of users in wordpress
It'll be like "Buyer and Seller" , seller can add auctions and post stuff while buyer can bid. They both would have different access.
I want to verify seller and let them wait until approval while buyer can simply register.
These functions are what "profile builder pro" provide but I don't want to spend on it.
I've tried to use "Ultimate Profile Builder" , but when I add custom fields they don't appear in form.
I've also tried WP registration , it provide very clean forms but problem is that it don't have option to manage different roles - is this possible that I can manage both type of users with single registration form by providing different fields based on role selection(may be i can use radio button for role selection).
It's easy you can learn about all wordpress users types, and whats roles given to all users, below screenshot
I have to build an "admin only" page where an admin user can input 3 objects - a person's "name", "description" and a photo. this way they can add/edit/delete people from the website.
I have tried adding "add_menu_page()" to the admin navigation menu and that worked, but I'm kind of lost as to what to do next, or even if I'm on the right track.
I'm assuming I will load the people into the WP database and query the database when i need to display each person.
Yes you are on the right track. Just create a form for the admin where he/she can enter the name, description and photo of a person.
You should make another page using the same method i.e. add_menu_page() and load your WP DB there and provide the option to the admin to delete, edit or add from there.
I need a plugin that would restrict registered users to only be able to add/edit pages in specific categories. Even though WordPress pages do not have "Categories" like posts do.
Like, if I have a category called "Robot Maintenance", I want to make sure that only specified users or roles can edit and create pages in that category.
I see that the Member plugin lets me create new roles with such capabilities as "edit only pages they own" but I was hoping I could create a role (for say, a department) and configure that role to be able to edit and create pages within the {department} category. Or even limit users to specific categories.
This is a fairly complex task, and you may want to engage a professional wordpress plugin developer to build this for you.
Having said that....
It is possible to add categories to a page. Check out the tutorial at http://shibashake.com/wordpress-theme/add-tags-and-categories-to-your-wordpress-page
Next, you will want to programatically create roles for each page category you have. You will want to hook into the create and remove category to create/remove your special role. Then, you can use the members plugin to grant proper permissions.
Then, you need to hook into the page edit flow to ensure that the current user has the permissions to edit the current page (based on your custom roles and the page's category).
Still a bit of work for you to research...but at least this should give you a fairly good starting point.