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

收藏
评论
打赏
RESTful API 开发
WordPress 路由
2023-05-04 11:15:11
RESTful API 开发
WordPress 自定义 JWT 授权和验证
2023-05-04 12:09:33
生成中...
真诚赞赏,手留余香
登录
注册
重置密码