WP_User::translate_level_to_cap()
Converts numeric level to level capability name.
Prepends 'level_' to level number.
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. |
WP_User::translate_level_to_cap() WP User::translate level to cap code WP 6.6.2
public function translate_level_to_cap( $level ) { return 'level_' . $level; }