wordpress / latest / classes / wp_roles / get_names.html

WP_Roles::get_names(): string[]

Retrieves a list of role names.

Return

string[] List of role names.

Source

File: wp-includes/class-wp-roles.php. View all references

public function get_names() {
	return $this->role_names;
}

Used By

Used By Description

Changelog

Version Description
2.0.0 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_roles/get_names