load_script_translation_file

過濾鉤子
apply_filters( 'load_script_translation_file', $file, $handle, $domain )
引數
  • (string|false) $file Path to the translation file to load. False if there isn't one.
    Required:
  • (string) $handle Name of the script to register a translation domain to.
    Required:
  • (string) $domain The text domain.
    Required:
定義位置
相關勾子
load_script_translationspre_load_script_translationsasync_update_translationload_script_textdomain_relative_pathtranslations_api
相關方法
load_script_translationswp_set_script_translationswp_load_translations_earlylist_translation_updateswp_get_translation_updatestranslations_api
引入
5.0.2
棄用
-

load_script_translation_file: 這個函式載入一個指令碼的翻譯檔案。它用於將指令碼中的文字字串翻譯成網站的適當語言。

過濾用於載入給定指令碼控制代碼和文字域的指令碼翻譯的檔案路徑。

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

常見問題

FAQs
檢視更多 >