【问题标题】:Is it true that we can't call wp-load.php in our plugin?我们的插件中不能调用 wp-load.php 是真的吗?
【发布时间】:2015-09-21 08:03:47
【问题描述】:

在我的插件中我写了

 require_once('../../../wp-load.php');

但是管理部门说我不能调用这个文件。我怎样才能从这个文件中加载函数而不调用?

【问题讨论】:

标签: php wordpress plugins


【解决方案1】:

您可以改为 require_once wp-blog-header.php 文件。

http://codex.wordpress.org/User:Jalenack/Integrating_Wordpress_into_an_Existing_Site

【讨论】:

    猜你喜欢
    • 2013-01-11
    • 2018-12-17
    • 2017-03-19
    • 2012-12-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-12-19
    • 2016-09-17
    相关资源
    最近更新 更多