caps ) // Only hit logged in users with no caps return; if ( !$bb_table_prefixen = get_option( 'bbpress-integration' ) ) // Only hit these prefixes return; foreach ( (array) $bb_table_prefixen as $prefix ) { if ( $caps = get_usermeta( $current_user->ID, $prefix . 'capabilities' ) ) { $current_user->set_role( get_option( 'default_role' ) ); continue; } } if ( empty($current_user->data->display_name) ) { if ( file_exists(ABSPATH . WPINC . '/registration-functions.php') ) require_once( ABSPATH . WPINC . '/registration-functions.php' ); elseif ( file_exists(ABSPATH . WPINC . '/registration.php' ) ) require_once( ABSPATH . WPINC . '/registration.php' ); if ( function_exists('wp_update_user') ) wp_update_user( array('ID' => $current_user->ID) ); // Sets up nicename and display_name } } // UI function bb_int_admin_menu() { add_submenu_page( 'plugins.php', __('bbPress Integration'), __('bbPress'), 'manage_options', 'bbpress-integration', 'bb_int_admin_page' ); } function bb_int_admin_page() { if ( !current_user_can('manage_options') ) : ?>

config.php file. You may list multiple table prefixes by separating them with commas."); ?>

: bb_