function delete_file($file)
{
if (file_exists($file))
{
$delete = chmod ($file, 0777);
$delete = unlink($file);
if(file_exists($file))
{
$filesys = eregi_replace("/","\\",$file);
$delete = system("del $filesys");
clearstatcache();
if(file_exists($file))
{
$delete = chmod ($file, 0777);
$delete = unlink($file);
$delete = system("del $filesys");
}
}
clearstatcache();
if(file_exists($file))
{
return 'Delete Faile : ‘.$file.’
‘;
}
else
{
return ‘Delete Successs : ‘.$file.’
‘;
}
}
else
{
return ‘Delete Successs : ‘.$file.’
‘;
}
}
?>
WooCommerce 条件判断函数 wordpress is_shop
所有的条件判断函数测试当前条件是否匹配,匹配返回 TRUE,不匹配则返 阅读更多…