wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



esc_attr_x › WordPress Function

Od2.8.0
Przestarzałyn/a
esc_attr_x ( $text, $context, $domain = 'default' )
Parametry: (3)
  • (string) $text Text to translate.
    Wymagane: Tak
  • (string) $context Context information for the translators.
    Wymagane: Tak
  • (string) $domain Optional. Text domain. Unique identifier for retrieving translated strings. Default 'default'.
    Wymagane: Nie
    Domyślny: 'default'
Powrót:
  • (string) Translated text.
Zdefiniowane na:
Codex:

Translates string with gettext context, and escapes it for safe use in an attribute.

If there is no translation, or the text domain isn't loaded, the original text is escaped and returned.


Źródło

function esc_attr_x( $text, $context, $domain = 'default' ) {
	return esc_attr( translate_with_gettext_context( $text, $context, $domain ) );
}