1/* get all role in wordpress in associative key = role(slug) => value(Role Display name) by joshiyogesh0333@gmail.com */
2function get_role_names() {
3
4global $wp_roles;
5
6if ( ! isset( $wp_roles ) )
7 $wp_roles = new WP_Roles();
8
9return $wp_roles->get_names();
10}
11
1function get_role_names() {
2
3global $wp_roles;
4
5if ( ! isset( $wp_roles ) )
6 $wp_roles = new WP_Roles();
7
8return $wp_roles->get_names();
9}
10