I have a use case where I need to show or hide components based on user role, and I realized that there are no conditionals for that yet. Is there any way you can add a function for that? Ideally, it would pre-define the built-in WP roles and let you type in a custom role if you are using one.
In the meantime, I’ll create a custom capability and use the IF current_user_can conditional. But, with the upcoming WP plugin, I suspect a lot of new users won’t have a clue how to do that.