Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想使用这个函数生成 Wordpress 插件目录 plugins_url()
plugins_url()
但是,它给出了这样的输出
http://localhost/wordpress/wp-content/plugins
我想知道,有没有办法生成像
/[wp-installation-root]/wp-content/plugins?
/[wp-installation-root]/wp-content/plugins
谢谢。
你的意思是
site_url()
或者
bloginfo('wpurl)