apply_filters( 'gettext', $translation, $text, $domain )
引數
  • (string) $translation Translated text.
    Required:
  • (string) $text Text to translate.
    Required:
  • (string) $domain Text domain. Unique identifier for retrieving translated strings.
    Required:
定義位置
相關勾子
ngettextwidget_textget_siteget_termget_the_excerpt
相關方法
__ngettextget_siteget_term__ngettext_noopget_the_excerptcomment_text
引入
2.0.11
棄用
-

gettext: 該函式檢索給定文字字串在當前地區的翻譯字串。

使用翻譯過濾文字。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$translation = apply_filters( 'gettext', $translation, $text, $domain );
$translation = apply_filters( 'gettext', $translation, $text, $domain );
$translation = apply_filters( 'gettext', $translation, $text, $domain );

常見問題

FAQs
檢視更多 >