_ex ( $text, $context, $domain = 'default' )
引數
  • (string) $text Text to translate.
    Required:
  • (string) $context Context information for the translators.
    Required:
  • (string) $domain Optional. Text domain. Unique identifier for retrieving translated strings. Default 'default'.
    Required:
    Default: 'default'
定義位置
相關方法
_e_x_nx_
引入
3.0.0
棄用
-

_ex: 這是WordPress中esc_html__函式的一個簡寫函式。它是用來轉義和呼應翻譯後的字串。

顯示帶有gettext上下文的翻譯字串。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function _ex( $text, $context, $domain = 'default' ) {
echo _x( $text, $context, $domain );
}
function _ex( $text, $context, $domain = 'default' ) { echo _x( $text, $context, $domain ); }
function _ex( $text, $context, $domain = 'default' ) {
	echo _x( $text, $context, $domain );
}

常見問題

FAQs
檢視更多 >