components/Roles/Roles.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 371-377 (lines=7) @@ | 
                                                            
                                    | 368 |  |  | 
                                                            
                                    | 369 |  |         $role_caps = array(); | 
                                                            
                                    | 370 |  |  | 
                                                            
                                    | 371 |  |         foreach ( $wp_roles->role_objects as $key => $role ) { | 
                                                            
                                    | 372 |  |             if ( is_array( $role->capabilities ) ) { | 
                                                            
                                    | 373 |  |                 foreach ( $role->capabilities as $cap => $grant ) { | 
                                                            
                                    | 374 |  |                     $role_caps[ $cap ] = $cap; | 
                                                            
                                    | 375 |  |                 } | 
                                                            
                                    | 376 |  |             } | 
                                                            
                                    | 377 |  |         } | 
                                                            
                                    | 378 |  |  | 
                                                            
                                    | 379 |  |         $role_caps = array_unique( $role_caps ); | 
                                                            
                                    | 380 |  |  | 
                                                                        
                 
                                                            
                    
classes/fields/pick.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 2017-2023 (lines=7) @@ | 
                                                            
                                    | 2014 |  |  | 
                                                            
                                    | 2015 |  |         $role_caps = array(); | 
                                                            
                                    | 2016 |  |  | 
                                                            
                                    | 2017 |  |         foreach ( $wp_roles->role_objects as $key => $role ) { | 
                                                            
                                    | 2018 |  |             if ( is_array( $role->capabilities ) ) { | 
                                                            
                                    | 2019 |  |                 foreach ( $role->capabilities as $cap => $grant ) { | 
                                                            
                                    | 2020 |  |                     $role_caps[ $cap ] = $cap; | 
                                                            
                                    | 2021 |  |                 } | 
                                                            
                                    | 2022 |  |             } | 
                                                            
                                    | 2023 |  |         } | 
                                                            
                                    | 2024 |  |  | 
                                                            
                                    | 2025 |  |         $role_caps = array_unique( $role_caps ); | 
                                                            
                                    | 2026 |  |  |