List All Roles

This snippet let’s you loop through every role registered in WordPress. If you want to change the capabilities of a role, check out this snippet: Change Role Capabilities. Posted in Pure hacks

We do not write or claim ownership of any of the articles featured on this website. Instead we aim to highlight them so you can read the full article at the original source. To finish reading this article, follow the continue reading link below. CONTINUE READING
Author: WP-Snippets

WP-Snippets is a website focused on creating useful content for WordPress developers. We’re dedicated to help anyone building WordPress websites, whether you’re a pro or if you just got started.

http://wp-snippets.com/

Sign up to our newsletter

Don't worry, we won't give your email to any third parties
and you can unsubscribe at any time.