public static function CleantalkFuncs::cleantalk_get_user_roles in Anti Spam by CleanTalk 7.5
Same name and namespace in other branches
- 7.4 src/CleantalkFuncs.php \CleantalkFuncs::cleantalk_get_user_roles()
2 calls to CleantalkFuncs::cleantalk_get_user_roles()
- CleantalkFuncs::cleantalk_get_user_roles_default in src/
CleantalkFuncs.php - cleantalk_settings_form in src/
Form/ CleantalkSettingsForm.php - Cleantalk settings form.
File
- src/
CleantalkFuncs.php, line 808
Class
- CleantalkFuncs
- Cleantalk class create request
Code
public static function cleantalk_get_user_roles() {
$roles = user_roles();
asort($roles);
return $roles;
}