Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save davepullig/062eedc77d2d617e596c94a0c95702db to your computer and use it in GitHub Desktop.
Save davepullig/062eedc77d2d617e596c94a0c95702db to your computer and use it in GitHub Desktop.
Get a list of WordPress roles and their capabilities in a format that can be used in code.
var_export(wp_roles()->roles,true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment