Skip to content
Advertisement

WordPress – Second Custom Role Not working

I have successfully created a custom user role called Client and I am using the same structure to create a second custom user role called Broker.

I have been stumped here all morning for something so simple, there is no difference other than the required variables and names.

The second user role does not show up in the list when I add new role in the WP Admin back-end.

Any thoughts?

Edit: There are two custom post types being given permissions here, for reference they are an Incident and Document custom post-type.

JavaScript

Advertisement

Answer

It looks like the multiple hooks were causing an issue, I simplified the code as shown below and everything works fine now:

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement