bbp_get_default_role( string $default = 'bbp_participant' )

Get the default forums role (issued to users on their first visit to the forums) by bbp_set_current_user_default_role() and repair tools


Description Description


Parameters Parameters

$default

(Optional) Default value empty

Default value: 'bbp_participant'


Top ↑

Return Return

(string) The default forums user role


Top ↑

Source Source

File: includes/core/options.php

function bbp_get_default_role( $default = 'bbp_participant' ) {

	// Filter & return
	return apply_filters( 'bbp_get_default_role', get_option( '_bbp_default_role', $default ) );
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.