$role ) { if ( isset( $role['capabilities'][ $level ] ) && $role['capabilities'][ $level ] ) { $roles[] = array( 'id' => $id, 'name' => $role['name'] ); } } return $roles; } }