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 授权和验证
下一篇

0 条评论

像素鱼丸
61691 阅读
100 发布
3 收藏
动态
MirageV 主题 v2.29.0 发布
MirageV 主题 v2.6.4 发布
Mirage 主题 v2.33.1 发布
LandV 企业主题 v2.6.0 发布
FishV 主题 v1.14 发布
BotV 插件 v1.7.0 发布
MirageV 主题 v2.5 正式发布
FishV 主题 v1.21.0 发布
生成中...
真诚赞赏,手留余香
登录
注册
重置密码