/home/vianto5/hidalgoresidences.mx/wp-content/plugins/user-role-editor/includes/classes
NameSizeModeActions
admin-notice.php19210644editdlrm
advertisement.php28550644editdlrm
ajax-processor.php135380644editdlrm
assign-role.php72720644editdlrm
base-lib.php110120644editdlrm
bbpress.php29110644editdlrm
capabilities-groups-manager.php182210644editdlrm
capabilities.php157000644editdlrm
capability.php100400644editdlrm
core.php93630644editdlrm
editor.php664710644editdlrm
grant-roles.php204400644editdlrm
known-js-css-compatibility-issues.php26820644editdlrm
lib.php196410644editdlrm
loader.php51820644editdlrm
own-capabilities.php61970644editdlrm
protect-admin.php83050644editdlrm
role-additional-options.php49500644editdlrm
role-view.php199820644editdlrm
screen-help.php59360644editdlrm
settings.php105320644editdlrm
task-queue.php40630644editdlrm
tools.php39460644editdlrm
uninstall.php27240644editdlrm
user-other-roles.php152820644editdlrm
user-role-editor.php386120644editdlrm
user-view.php92010644editdlrm
view.php148540644editdlrm
woocommerce-capabilities.php59740644editdlrm
Edit: /home/vianto5/hidalgoresidences.mx/wp-content/plugins/user-role-editor/includes/classes/bbpress.php (2911B)
bbpress_detected = false; if ( function_exists('bbp_filter_blog_editable_roles') ) { $this->bbpress_detected = true; // bbPress plugin is installed and active } } // end of detect_bbpress() public function is_active() { return $this->bbpress_detected; } // end of is_active() /** * Exclude roles created by bbPress * * @global array $wp_roles * @return array */ public function get_roles() { $wp_roles = wp_roles(); if ($this->bbpress_detected) { $roles = bbp_filter_blog_editable_roles( $wp_roles->roles ); // exclude bbPress roles } else { $roles = $wp_roles->roles; } return $roles; } // end of get_roles() /** * Get full list user capabilities created by bbPress * * @return array */ public function get_caps() { if ( $this->bbpress_detected ) { $caps = array_keys( bbp_get_caps_for_role( bbp_get_keymaster_role() ) ); } else { $caps = array(); } return $caps; } // end of get_caps() /** * Return empty array in order do not include bbPress roles into selectable lists: supported by Pro version only * @return array */ public function get_bbp_editable_roles() { $all_bbp_roles = array(); return $all_bbp_roles; } // end of get_bbp_editable_roles() /** * Return bbPress roles found at $roles array. Used to exclude bbPress roles from processing as free version should not support them * * @param array $roles * @return array */ public function extract_bbp_roles($roles) { $user_bbp_roles = array(); if ( $this->bbpress_detected ) { $all_bbp_roles = array_keys( bbp_get_dynamic_roles() ); foreach( $roles as $role ) { if ( in_array( $role, $all_bbp_roles ) ) { $user_bbp_roles[] = $role; } } } return $user_bbp_roles; } // end of extract_bbp_roles() } // end of URE_bbPress class