WP_Roles::get_names
Retrieves a list of role names.
Метод класса: WP_Roles{}
Хуков нет.
Возвращает
string[]. List of role names.
Использование
global $wp_roles; $wp_roles->get_names();
Список изменений
| С версии 2.0.0 | Введена. |
Код WP_Roles::get_names() WP Roles::get names WP 7.1
public function get_names() {
return $this->role_names;
}