LLMS_Roles::get_all_role_names()
Returns an array of role names.
Description Description
LLMS roles and WP core roles are translated.
Return Return
(array)
Source Source
File: includes/class.llms.roles.php
public static function get_all_role_names() { $all_roles = wp_roles()->roles; return array_merge( array_combine( array_keys( $all_roles ), array_map( 'translate_user_role', // Translates WP Core roles. array_column( $all_roles, 'name' ) ) ), self::get_roles() // So our roles are translated as well. ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
5.6.0 | Introduced. |