WC_REST_Customers_V1_Controller::get_role_names()protectedWC 1.0

Get role names.

Метод класса: WC_REST_Customers_V1_Controller{}

Хуков нет.

Возвращает

Массив.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_role_names();

Код WC_REST_Customers_V1_Controller::get_role_names() WC 8.7.0

protected function get_role_names() {
	global $wp_roles;

	return array_keys( $wp_roles->role_names );
}