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 路由
2024-05-04
WordPress 主题开发
WordPress 自定义 JWT 授权和验证
2024-05-04
飞翔的鱼丸
39404 阅读
82 发布
2 收藏
动态
FishV 主题 v1.21.0 发布
LandV 企业主题 v2.8.0 发布
MirageV 主题 v2.6.4 发布
FishV 主题 v1.14 发布
MirageV 主题 v2.5 正式发布
BotV 插件 v1.7.0 发布
LandV 企业主题 v2.6.0 发布
MirageV 主题 v2.6.0 发布
生成中...
真诚赞赏,手留余香
登录
注册
重置密码