Front End users account with lots of user Roles (not Woocommerce)
Front End users account with lots of user Roles (not Woocommerce)
Front End users account with lots of user Roles (not Woocommerce)
One simple solution: create a custom post type for each level, and use CPT permissions so you can assign them rights to only edit their level of CPT and never see the others. You can then assign a different ACF fieldset for each post type. Use the same names for fields within the fieldsets, and … Read more
Turns out the issue with my category was that it was a custom taxonomy: elseif ( is_tax(‘category’, $private_categories) ) needed to be elseif ( is_tax(‘wzkb_category’, $private_categories) ) Super simple but might send someone down the correct path in future.
For the benefit of those who will come across this question, I have solved it. This is how the functioning code works. Now this code helps me to delete Subscribers who have registered on the blog using a plan of their choice, I am working on a paid blog and figured I could do it … Read more
Not an answer to the question, but a workaround. I found that using the Custom Post Type UI plugin to create the custom datatype would offer new capabilities, as long as I changed the Capability Type field. Using the User Role Editor plugin seems to allow me to bridge the permissions with a custom user … Read more
Your current code disables plugins for logged in users with contributor capabilities on non-admin pages. The is_admin() function checks if the current page is “/wp-admin” page, to disable plugins just on the admin pages change this condition to: if ( current_user_can( ‘contributor’ ) && is_admin() ) { But to make this code work you need … Read more
I don’t know a plugin like this. But, my personal solution for this project would be like this : create a custom post type for agents create users role for agents (and users if you want) attach a custom field to users to store the assigned agent (maybe with Advanced custom fields plugin) Create a … Read more
Multiple user role on registration
user has permission to read a custom post but it is not being shown in wordpress plugin
Okay, I give you an answer based on capabilities and not role. You’ll find a way to hide it for other role if you want (you have the code in your question). add_menu_page requires some parameters, hook and callback to work : https://developer.wordpress.org/reference/functions/add_menu_page/ // Here is your hook to add page to the menu add_action(‘admin_menu’, … Read more