Worpdress获取当前所用主题目录代码,主要方便放JS,css,图片等。
get_stylesheet_directory_uri()
获取当前启用的主题目录的 URI,例如
echo get_stylesheet_directory_uri();//输出:https://www.seo628.com/wp-content/themes/twentyeleven
Woocommerce外贸独立站建站与推广引流
Worpdress获取当前所用主题目录代码,主要方便放JS,css,图片等。
get_stylesheet_directory_uri()
获取当前启用的主题目录的 URI,例如
echo get_stylesheet_directory_uri();//输出:https://www.seo628.com/wp-content/themes/twentyeleven