Filter: tcp get default roles

Description

Allows to add or remove roles from the default list of roles.

Parameters

$roles
(Array) List of roles (roles id).

Example

function my_tcp_get_default_roles( $default_roles ) {
	$roles[] = 'new role';
	return $roles;
}
add_filter( 'tcp_get_default_roles', 'my_tcp_get_default_roles' );

Change Log

Since 1.2.8

Related

tcp_get_default_roles