BBP_Users_Admin::remove_forum_roles( $role_list,  $user_object )

Remove bbPress’s dynamic roles from user role list

Description

Source

File: bp-forums/admin/users.php

	public function remove_forum_roles( $role_list, $user_object ) {
		$bbp_roles = array_map( '__return_zero', bbp_get_dynamic_roles() );

		return array_diff_key( $role_list, $bbp_roles );
	}

Changelog

Changelog
Version Description
BuddyBoss 1.0.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.