delete unattached images on post submit
-
I have given permission to the users to register on my blog and add the contents (posts). User can attach max 3 images to a single post.
Problem: A user uploads multiple images (say 20 images) to media library, then he finalizes 3 images from media library to attach with the post. So uncesserarily 17 images still are in media library which are unattached.
Seeking solution for: So I require a function/filter to clear the unattached images (remaining 17 images), which I can run on Submit post action in function.php.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘delete unattached images on post submit’ is closed to new replies.