wordpress插件将文件添加到插件中

时间:2017-07-18 05:54:08

标签: php wordpress plugins

我正在将一些日历程序转换为wp插件,并且在向其他php页面添加文件时遇到问题 我现在的代码就是这个

$the_file="ac-config.inc.php";
if(!file_exists($the_file)) die("<b>".$the_file."</b> not found");
else require_once($the_file);

但是因为现在一切都在插件中,所以无法找到它。有什么建议吗?

0 个答案:

没有答案