Uma área de pesquisa sobre o WordPress para devs e autores do tema



translate_with_context ›

Desde2.5.0
Obsoleto2.9.0
translate_with_context ( $text, $domain = 'default' )
Parâmetros: (2)
  • (string) $text Text to translate
    Required: Yes
  • (string) $domain Domain to retrieve the translated text
    Required: No
    Padrão: 'default'
Ver:
Retorna:
  • (string) Translated text
Definido em:
Codex:

Translates $text like translate(), but assumes that the text contains a context after its last vertical bar.



Fonte

function translate_with_context( $text, $domain = 'default' ) {
	_deprecated_function( __FUNCTION__, '2.9.0', '_x()' );
	return before_last_bar( translate( $text, $domain ) );
}