Home Forums Plugin Support WP User Frontend (Free Version) Delete Attachments

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Tareq Hasan 5 years, 2 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #16171

    vagtarap
    Member

    I noticed when the post is deleted the attachments are not? Does the Pro Version remove attachments or how can I modify to remove attachments when the post is deleted from wpuf dashboard?

    #16174

    Tareq Hasan
    Keymaster
    Post count: 2831

    WordPress itself doesn't deletes attachments when you delete a post. You can hook into WordPress's delete_post action hook and find all the attachments attached to that post and delete them.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Delete Attachments’ is closed to new replies.