Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › What appen to product when subscription expires?
- This topic has 6 replies, 4 voices, and was last updated 5 years, 1 month ago by WCFM Forum.
- AuthorPosts
- October 23, 2019 at 8:38 pm #88681fabricebartoli90Participant
Hi, i need to delete (not put in draft, but DELETE) all products of the vendor when his subscription expires.
How can i do it? - October 23, 2019 at 8:39 pm #88682fabricebartoli90Participant
my problem is the media. I don’t want them to be kept and take up space (the space is paid), so in addition to the products, the user’s media must also be deleted.
- October 23, 2019 at 9:03 pm #88685sdel_nevoParticipant
Hi
the WCFM Devs gave me this code a while ago that does what you want
//Delete Product Images If Vendor Deletes A Product add_filter( 'wcfm_is_allow_delete_post_media', '__return_true' ); add_filter( 'wcfm_is_allow_product_delete', '__return_true' );
when a product is deleted, its images are also deleted
it works really well for me
Steve
- October 28, 2019 at 6:30 am #89324aemr45Participant
Hi guys,
This code works really well for me so I can keep the media in order, but I see that images related as 360° image view do not get deleted, can you help me adding this option?
Thanks
- November 5, 2019 at 1:39 pm #90710fabricebartoli90Participant
Thank you very much sdel_nevo! This works very well!!!
About aemr45’s problmem, i didn’t understood because my english is very bad… 🙁 - November 5, 2019 at 1:43 pm #90713sdel_nevoParticipant
HI
You’re most welcome
Steve
- November 5, 2019 at 4:59 pm #90782WCFM ForumMember
Thanks @sdel_nevo
- AuthorPosts
- The topic ‘What appen to product when subscription expires?’ is closed to new replies.