wordpress 相關路徑函數

更新日期:2014-08-13

wordpress內建路徑函數整理表,對於製作佈景、外掛插件都是必備的資訊。
(本表陸續整理中)

home_url() Home URL http://www.example.com
site_url() Site directory URL http://www.example.com or http://www.example.com/wordpress
admin_url() Admin directory URL http://www.example.com/wp-admin
includes_url() Includes directory URL http://www.example.com/wp-includes
content_url() Content directory URL http://www.example.com/wp-content
plugins_url() Plugins directory URL http://www.example.com/wp-content/plugins
theme_url() Themes directory URL (#18302) http://www.example.com/wp-content/themes
wp_upload_dir() Upload directory URL (returns an array) http://www.example.com/wp-content/uploads

官方相關文章:
http://codex.wordpress.org/Determining_Plugin_and_Content_Directories

發佈留言