How to delete all images from post with selected status?


Need to delete images:

  1. thumbs, meta_key = _thumbnail_id
  2. attached images. For example meta_key = ‘image_upload_9860026864’, I don’t know what the digits at the end. Inside a:3:{i:0;s:6:"126306";i:1;s:6:"126307";i:2;s:6:"126308";}.

from posts (DB and files) with post_status = ‘spam’.

Martin 1 week 0 Answers 4 views 0

Leave an answer