bbp_filter_user_roles_option

Helper function to add filter to option_wp_user_roles.

Description

bbp_filter_user_roles_option(); 

Usage

  1. if ( !function_exists( 'bbp_filter_user_roles_option' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/core/capabilities.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bbp_filter_user_roles_option(); 
  7.  

Defined (1)

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

/includes/core/capabilities.php  
  1. function bbp_filter_user_roles_option() { 
  2. global $wpdb; 
  3.  
  4. $role_key = $wpdb->prefix . 'user_roles'; 
  5.