WC_REST_Customers_V1_Controller::get_role_names()
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() WC REST Customers V1 Controller::get role names code WC 9.8.1
protected function get_role_names() { global $wp_roles; return array_keys( $wp_roles->role_names ); }