Plugin breaking the wp_delete_attachment() functions
-
Steps to reproduce:
1) Turn on Remove Files From Server
2) Now upload an image to wp.
3) Now create a php file and use this this:require_once("wp-load.php"); wp_delete_attachment(377, true);
4) replace 377 with the uploaded attachment id.
5) Run the script in PHP-CLIYou MUST run it via PHP-CLI
Results: The attachment won’t delete.
Expected Results: Delete the attachment as well from the bucket.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Plugin breaking the wp_delete_attachment() functions’ is closed to new replies.