Used By
Used By | Description |
---|---|
wp-includes/class-wp-user.php: WP_User::has_cap() | Returns whether the user has the specified capability. |
Convert numeric level to level capability name.
Prepends ‘level_’ to level number.
(int) (Required) Level number, 1 to 10.
(string)
File: wp-includes/class-wp-user.php
public function translate_level_to_cap( $level ) { return 'level_' . $level; }
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