How to delete all images from post with selected status?

Question

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’.

0
Martin 1 week 0 Answers 4 views 0

Leave an answer