wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
translate_user_role › WordPress Function
Seit2.8.0
Veraltetn/v
› translate_user_role ( $name, $domain = 'default' )
Parameter: (2) |
|
Gibt zurück: |
|
Definiert in: |
|
Codex: | |
Changelog: |
|
Translates role name.
Since the role names are in the database and not in the source there are dummy gettext calls to get them into the POT file and this function properly translates them back. The before_last_bar() call is needed, because older installations keep the roles using the old context format: 'Role name|User role' and just skipping the content after the last bar is easier than fixing them in the DB. New installations won't suffer from that problem.Ähnliche Funktionen: translate_level_to_role, translate_smiley, validate_user_form, translate, translate_with_context