WC_REST_Customers_V1_Controller::get_role_names
Get role names.
Метод класса: WC_REST_Customers_V1_Controller{}
Хуков нет.
Возвращает
Массив.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_role_names();
Код WC_REST_Customers_V1_Controller::get_role_names() WC REST Customers V1 Controller::get role names WC 10.8.1
protected function get_role_names() {
global $wp_roles;
return array_keys( $wp_roles->role_names );
}