WordPress at Your Fingertips
function is not described

WP_User::translate_level_to_cap() public WP 2.0.0

Convert numeric level to level capability name.

Prepends 'level_' to level number.

{} It's a method of the class: WP_User{}

No Hooks.

Return

String.

Usage

$WP_User = new WP_User();
$WP_User->translate_level_to_cap( $level );
$level(int) (required)
Level number, 1 to 10.

Changelog

Since 2.0.0 Introduced.

Code of WP_User::translate_level_to_cap() WP 5.8.1

public function translate_level_to_cap( $level ) {
	return 'level_' . $level;
}