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.


Top ↑

Return Return

(string)


Top ↑

Source Source

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

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

Top ↑

Changelog Changelog

Changelog
Version Description
2.0.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.