我正在创建一个插件,我正在尝试在构造上使用此代码:
if(!isset($root, $version, $itemID, $codeKey, $authKey, $channelKey)) {
wp_die('Missing params in $config for KM_Updates constructor');
}else{
echo 'getting here';
}
无论谁一直在死,我都回应了一切:
$root = 'localhost/testplugin'
$version = null
$itemID = 1
$codeKey = '00000A'
$authKey = '123456789qwertyuio'
$channelKey = 1
然而,即使你设定了一切,它仍然会死亡