W3cubDocs

/WordPress

WP_User::translate_level_to_cap( int $level )

Convert numeric level to level capability name.

Description

Prepends ‘level_’ to level number.

Parameters

$level

(int) (Required) Level number, 1 to 10.

Return

(string)

Source

File: wp-includes/class-wp-user.php

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

Changelog

Version Description
2.0.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_user/translate_level_to_cap