Converts numeric level to level capability name.
Description
Prepends ‘level_’ to level number.
Parameters
$level
intrequired- Level number, 1 to 10.
Source
public function translate_level_to_cap( $level ) {
return 'level_' . $level;
}
Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.