bp_blogs_get_allowed_roles()
The allowed blog roles a member must have to be recorded into the bp_user_blogs pointer table.
Description
This added and was made filterable in BuddyPress 2.1.0 to make it easier to extend the functionality of the Blogs component.
Return
(string)
Source
File: bp-blogs/bp-blogs-functions.php
function bp_blogs_get_allowed_roles() {
/**
* Filters the allowed roles a member must have to be recorded into bp_user_blogs pointer table.
*
* @since BuddyPress 2.1.0
*
* @param array $value Array of potential roles user needs.
*/
return apply_filters( 'bp_blogs_get_allowed_roles', array( 'contributor', 'author', 'editor', 'administrator' ) );
}
Changelog
| Version | Description |
|---|---|
| BuddyPress 2.1.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.