Getting total string value in wp_capabilities and also not able to see role in wp-admin

I’ve created a new role named “adivaha_partner” and when registering it with the new role I am using “update_user_meta” and “add_user_meta” for inserting and updating in meta table.
All things are working fine except the fact that when “wp_capabilities” is getting stored in the table, It’s getting saved like s:33:”a:1:{s:15:”adivaha_partner”;b:1;}”; this and with which roles aren’t getting properly viewed and is showing “None” instead of showing the role.
Please help me solve it.
Thanks in advance 🙂

Read more here:: Getting total string value in wp_capabilities and also not able to see role in wp-admin

Leave a Reply

Your email address will not be published. Required fields are marked *