rcp_access_levels

Filters the available access levels.

Parameters:

  • $levels (array) - Array of numerical access levels. The key and value should both be the same number.

Example:

This increases the available access levels to 20.

function ag_rcp_access_levels( $levels ) {
	for ( $i = 11; $i <= 20; $i++ ) {
		$levels[ $i ] = $i;
	}

	return $levels;
}
add_filter( 'rcp_access_levels', 'ag_rcp_access_levels' );