Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Add forum roles

@joopstringer

Participant

Hey guys,

Can you please explain me where to put the functions.php file ?
If I put it in the child theme directory,my whole site goes blank …


<?php
/**
 * Functions .. additional to all the programs
 *
 * @package WordPress
 * @subpackage Twenty_Fourteen
 * @since Twenty Fourteen 1.0
 */

function add_custom_role( $bbp_roles ) {

	$bbp_roles['DDC Member'] = array(
	'name' => 'DDC Member',
	'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // i just want them to have the same capabilities as participants );

	$bbp_roles['Forumlid'] = array(
	'name' => 'Forumlid',
	'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // i just want them to have the same capabilities as participants );

	$bbp_roles['DDC Bestuur'] = array(
	'name' => 'DDC Bestuur',
	'capabilities' => bbp_get_caps_for_role( bbp_get_keymaster_role() ) // i just want them to have the same capabilities as participants ); 

	return $bbp_roles;
}

add_filter( 'bbp_get_dynamic_roles', 'add_custom_role', 1 );

?>
Skip to toolbar