Thanks. It should be noted, don't leave the add_role/add_cap code in init after they are created. Roles and capabilities are saved in WordPress tables, so you only have to create them once. Personally, I usually create them in my plugin's activate function, or use WP-CLI "wp role create technician Technician" & "wp cap add technician read view_assigned_tech", or use a plugin like Members (deactivate when done).
Hi WPCasts, you are amazing! Your videos really helped me and I improved my wordpress skill. Please make also some video about woo-commerce functionality. Best Regards!
Hi, Firstly thank you very much for your video's. I find them very helpful. My question is if I have built a process flow for specific functionality with plugins like elementary, acf and custom user roles etc. How can I package all of this so that I can deploy all together in another site? Almost like a plugin, but where it enables all the elementary, acf, cpt etc on one enable? Thank you in advance.
Really great! I have a search form on my website and I want some search fields only visible to certain user roles. Can I use your approach for that (changing some words in the code of course) or would I have to change the code alltogether? Might be a silly question to you but as a non-coder I am kinda lost :) I was thinking to use the get current user role then once thats done add an action: show or hide specific search fields...I dont even know what words to use for that - you use "echo" in your video is that the correct term? I would have tried show/hide or display....
Hi, Is it possible to delete a built-in user capability of a premium theme? if so can you please tell me how to do that? i have tried maximum user role editor plugins but nothing worked. can you tell how to do that from theme file editor. i will be so grateful. Thanks
Do you have a tip of how to create a simple workflow with Wordpress? For example, users with Role 1 can add Vehicles, users with Role 2 can fill out some details (text fields) to Vehicles. All in the backend, I mean.
Hello! After seeing one of your videos, I instantly subscribed to your channel and obviously I gave like to that video. Now when I followed this tutorial, I became stuck. First problem is after adding a new role and assigning a user to that role, when I tried to log in to the wordpress admin panel, it didn't logged in the back end, instead it went to the front-end. That new user cannot access the admin dashboard. Can you please help me with this?
When I add 'capability_type' => 'vechicle' the site custom post type just disappears from admin panel and it gets back when we keep 'capability_type' => 'post', can you please guide me.
Normally I would push either my Twitter or Patreon in this comment, but instead, I want to just wish you a wonderful week! You guys are awesome.
Thanks. It should be noted, don't leave the add_role/add_cap code in init after they are created. Roles and capabilities are saved in WordPress tables, so you only have to create them once. Personally, I usually create them in my plugin's activate function, or use WP-CLI "wp role create technician Technician" & "wp cap add technician read view_assigned_tech", or use a plugin like Members (deactivate when done).
FANTASTIC video! Luving all of this! I'm am officially a WPCasts groupie! THANK YOU! Yay!! Amy :)
Thank you for this. I learned a lot!
Amazing value again, Alex. Thank you for the great content. :D
Thank u it is what I m looking for 👍
Omg dude :D This is EXACTLY what i needed of information for my website.. Thank you so much!
Was using User Role Editor Pro. Let's hope I get to remove it and do everything myself. Thanks!
Awesome stuff!! Thank you. Tech still can see the price in the dashboard, I think. How to restrict that?
i just awesome ... thank you very much sir for making this video
best. thank you so much for this tutorial.
Hi WPCasts, you are amazing! Your videos really helped me and I improved my wordpress skill. Please make also some video about woo-commerce functionality. Best Regards!
Hi, Firstly thank you very much for your video's. I find them very helpful. My question is if I have built a process flow for specific functionality with plugins like elementary, acf and custom user roles etc. How can I package all of this so that I can deploy all together in another site? Almost like a plugin, but where it enables all the elementary, acf, cpt etc on one enable?
Thank you in advance.
Really great!
I have a search form on my website and I want some search fields only visible to certain user roles. Can I use your approach for that (changing some words in the code of course) or would I have to change the code alltogether? Might be a silly question to you but as a non-coder I am kinda lost :)
I was thinking to use the get current user role then once thats done add an action: show or hide specific search fields...I dont even know what words to use for that - you use "echo" in your video is that the correct term? I would have tried show/hide or display....
The "sup" in the beginning was intimidating
Hi, Is it possible to delete a built-in user capability of a premium theme? if so can you please tell me how to do that? i have tried maximum user role editor plugins but nothing worked. can you tell how to do that from theme file editor. i will be so grateful. Thanks
Great video as always, but I was curious as to why are you using leading underscores on your property definitions?
Hey Stephen, could you post the timestamp of the code you're seeing? It might help me with an answer.
@@WPCasts On 2:03 e.g.: _('New Vehicle')
Do you have a tip of how to create a simple workflow with Wordpress? For example, users with Role 1 can add Vehicles, users with Role 2 can fill out some details (text fields) to Vehicles. All in the backend, I mean.
Please create videos on creating custom login and signup pages.
Does this work for a wordpress network?
Because I just tested, and my new user can't "do anything" in the back office haha!
Hello! After seeing one of your videos, I instantly subscribed to your channel and obviously I gave like to that video.
Now when I followed this tutorial, I became stuck. First problem is after adding a new role and assigning a user to that role, when I tried to log in to the wordpress admin panel, it didn't logged in the back end, instead it went to the front-end. That new user cannot access the admin dashboard. Can you please help me with this?
Your custom post type is named "vehicle" and your capability type is also named "vehicle". Do these have to match?
When I add 'capability_type' => 'vechicle' the site custom post type just disappears from admin panel and it gets back when we keep 'capability_type' => 'post', can you please guide me.
Same for me, did you figure why it wasn't working?
awesome
cpu high usage when we post publish wordpress please tell me what reason
First! :D