覆盖在类中定义的wordpress插件函数

时间:2016-04-12 19:35:16

标签: php wordpress

我试图添加:

if ( ! function_exists( 'my_pluggable_function' ) ) {
    function my_pluggable_function() {
        /* Some code goes here */
    }
}

到一个在类中定义函数的插件。

似乎只要我在类定义中执行IF,php就会抛出错误。

0 个答案:

没有答案
相关问题