WordPress 常用的路径

1, bloginfo(‘template_url’)
http://localhost/wordpress/wp-content/themes/mytheme

2, bloginfo(‘template_directory’)
http://localhost/wordpress/wp-content/themes/mytheme

3, get_template_directory_uri()
http://localhost/wordpress/wp-content/themes/mytheme

4, get_stylesheet_directory_uri()
http://localhost/wordpress/wp-content/themes/mytheme

5, get_template_directory()
/www/test_com/wordpress/wp-content/themes/mytheme

6, home_url();
http://localhost/wordpress

7, site_url()
http://localhost/wordpress

收藏
评论
打赏
WordPress 路由
上一篇
WordPress 自定义 JWT 授权和验证
下一篇

发表评论

像素鱼丸
52992 阅读
95 发布
3 收藏
动态
MirageV 主题 v2.19.0 发布
MarkerV 插件 v1.2.0 发布
MirageV 主题 v2.6.4 发布
LandV 企业主题 v2.6.0 发布
BotV 插件 v2.4.0 发布,开始支持 DeepSeek
FishV 主题 v1.14 发布
BotV 插件 v1.7.0 发布
MirageV 主题 v2.5 正式发布
生成中...
真诚赞赏,手留余香
登录
注册
重置密码