Hi @ermwp
You can check this wp.org doc to create a new role:
https://developer.ww.wp.xz.cn/reference/functions/add_role/
Regards,
Thread Starter
ermWP
(@ermwp)
Thank you for the reply. Will that make it a UM custom role? I know how to make a WP role. How do I programmatically make a custom UM role?
Hi @ermwp
When you create a role with add_role it should create the UM Role. Try running this code: add_role( "um_test_role","UM Test Role", array() );
Once the role is added, go to WP Admin > Ultimate Member > User Roles > see “UM Test Role”.
Regards,
Hey there!
This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.
Please feel free to re-open this thread by changing the Topic Status to ‘Not Resolved’ if any other questions come up and we’d be happy to help. 🙂
Regards,