wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
_c is deprecated since version 2.9.0!
Alternative: _x()
Alternative: _x()
_c › WordPress Function
Seit2.2.0
Veraltet2.9.0
› _c ( $text, $domain = 'default' )
Parameter: (2) |
|
Siehe: |
|
Gibt zurück: |
|
Definiert in: |
|
Codex: |
Retrieve translated string with vertical bar context
Quite a few times, there will be collisions with similar translatable text found in more than two places but with different translated context. In order to use the separate contexts, the _c() function is used and the translatable string uses a pipe ('|') which has the context the string is in. When the translated string is returned, it is everything before the pipe, not including the pipe character. If there is no pipe in the translated text then everything is returned.