bp_blogs_get_allowed_roles()

The allowed blog roles a member must have to be recorded into the bp_user_blogs pointer table.


Description 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 Return

(string)


Top ↑

Source 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 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' ) );
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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