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中一个脚本的翻译文件。

过滤用于查找翻译文件的脚本的相对路径。

$relative = apply_filters( 'load_script_textdomain_relative_path', $relative, $src );

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2025-12-05 20:33:00

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: