我在前端主题中创建了一个自定义wp插件,其中包含图片上传部分。用户可以上传图像,但是如何将其从文件夹中删除?
if(isset($clicked_item_name)){
chmod(CARSELL_UPLOAD_DIR_TEMP.$current_user_id, 0755); //this will get permission to file
chmod($clicked_item_name, 0777); //this will give permission to file. I this there is problem!?
unlink($clicked_item_name);
}