role_map_wp_roles

The BuddyPress role map wp roles hook.

Description

apply_filters( 'role_map_wp_roles', (unknown) $wproles ); 

Parameters (1)

0. $wproles (unknown)
The wproles.

Usage

To run the hook, copy the example below.
  1. $wproles = apply_filters( 'role_map_wp_roles', $wproles ); 
  2.  
  3. if ( !empty( $wproles ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the role_map_wp_roles callback 
  2. function filter_role_map_wp_roles( $wproles ) { 
  3. // make filter magic happen here... 
  4. return $wproles
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'role_map_wp_roles', 'filter_role_map_wp_roles', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'role_map_wp_roles', 'filter_role_map_wp_roles', 10, 1 ); 

Defined (1)

The filter is defined in the following location(s).

/bp-forums/bbpress/bb-admin/options-wordpress.php  
  1. $wpRoles = apply_filters( 'role_map_wp_roles', $wpRoles );