Retrieve WordPress root directory path?

后端 未结 13 1444
闹比i
闹比i 2020-11-28 07:48

How can I retrieve the path to the root directory in WordPress CMS?

13条回答
  •  臣服心动
    2020-11-28 08:38

    You can use get_site_url() function to get the base url of the wordpress site.

    For more information, please visit http://codex.wordpress.org/Function_Reference/get_site_url

提交回复
热议问题