WP_User::translate_level_to_cap( int $level )
Convert numeric level to level capability name.
Description Description
Prepends ‘level_’ to level number.
Parameters Parameters
- $level
-
(int) (Required) Level number, 1 to 10.
Return Return
(string)
Source Source
File: wp-includes/class-wp-user.php
public function translate_level_to_cap( $level ) { return 'level_' . $level; }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |