load_script_textdomain_relative_path

過濾鉤子
apply_filters( 'load_script_textdomain_relative_path', $relative, $src )
引數
  • (string|false) $relative The relative path of the script. False if it could not be determined.
    Required:
  • (string) $src The full source URL of the script.
    Required:
定義位置
相關勾子
load_textdomain_mofileload_script_translationsload_script_translation_fileload_textdomainunload_textdomain
相關方法
load_script_textdomainload_script_translationsload_theme_textdomainload_child_theme_textdomain_wp_get_attachment_relative_pathload_textdomain
引入
5.0.2
棄用
-

load_script_textdomain_relative_path 是WordPress的一個函式,用來返回一個指令碼的文字域的相對路徑: 這個函式用來載入WordPress中一個指令碼的翻譯檔案。

過濾用於查詢翻譯檔案的指令碼的相對路徑。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$relative = apply_filters( 'load_script_textdomain_relative_path', $relative, $src );
$relative = apply_filters( 'load_script_textdomain_relative_path', $relative, $src );
$relative = apply_filters( 'load_script_textdomain_relative_path', $relative, $src );

常見問題

FAQs
檢視更多 >