WPDev.one
Core Function
View Source on Trac ↗

translate_with_context()

translate_with_context( mixed $text, mixed $domain = 'default' )

Translates $text like translate(), but assumes that the text

Parameters 1 required

Name / Type Description
$text
string

Text to translate.

Required
$domain
string

Domain to retrieve the translated text.

Return Value

(string)
Translated text.

Function Information

Since Version
2.5.0
Source File
wp-includes/deprecated.php
Advertisement