WC_REST_Customers_V1_Controller::get_role_names()protectedWC 1.0

Get role names.

Method of the class: WC_REST_Customers_V1_Controller{}

No Hooks.

Return

Array.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_role_names();

WC_REST_Customers_V1_Controller::get_role_names() code WC 8.6.1

protected function get_role_names() {
	global $wp_roles;

	return array_keys( $wp_roles->role_names );
}