content_url

过滤钩子
apply_filters( 'content_url', $url, $path )
参数
  • (string) $url The complete URL to the content directory including scheme and path.
    Required:
  • (string) $path Path relative to the URL to the content directory. Blank string if no path is specified.
    Required:
定义位置
相关勾子
comment_urlcontent_save_prethe_contentcomment_authorsite_url
相关方法
content_urlclean_urlthe_content_rsscomment_authorcount_usersthe_content
引入
2.8.0
弃用
-

content_url是一个过滤钩子,允许你修改你的WordPress安装的内容目录的URL: 当你需要把你的内容目录移到一个不同的位置,或者由于其他原因改变你的内容目录的URL时,这个钩子是有用的。

过滤到内容目录的URL。

return apply_filters( 'content_url', $url, $path );

常见问题

FAQs
查看更多 >
闪电伯伯

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

2025-11-19 08:27:49

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

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

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