What appen to product when subscription expires?

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Tagged: ,

Viewing 6 reply threads
  • Author
    Posts
    • #88681
      fabricebartoli90
      Participant

      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?

    • #88682
      fabricebartoli90
      Participant

      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.

    • #88685
      sdel_nevo
      Participant

      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

    • #89324
      aemr45
      Participant

      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

    • #90710
      fabricebartoli90
      Participant

      Thank you very much sdel_nevo! This works very well!!!
      About aemr45’s problmem, i didn’t understood because my english is very bad… 🙁

    • #90713
      sdel_nevo
      Participant

      HI

      You’re most welcome

      Steve

    • #90782
      WCFM Forum
      Keymaster
Viewing 6 reply threads
  • The topic ‘What appen to product when subscription expires?’ is closed to new replies.