Vendor vs. Disabled Vendor vs. Expired-Membership Vendor

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!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WCFM – Membership Vendor vs. Disabled Vendor vs. Expired-Membership Vendor

Viewing 1 reply thread
  • Author
    Posts
    • #31223
      d-n-13
      Participant

      Hello good wcfm team,

      I am thinking how I can manage Vendors that I disabled because I don’t want them to renew again, while keeping the ability to re-sub for vendors who have their membership expired and their roles changed to “Disabled Vendors”

      I have my cancellation and expiration of memberships changes vendors to Disabled role, because I want their products to go Draft and I don’t want them to show up in stores list until they resup again to paid or free membership. (I like the system this way)

      But, there is no way to disable vendors and block them from re-subbing again.

      Any ideas ?

      Thank you.

    • #31313
      WCFM Forum
      Keymaster

      Hi,

      Kindly add this code for the purpose –

      add_filter( 'wcfm_allowed_membership_user_roles', function( $allowed_roles ) {
      	if (($key = array_search( 'disable_vendor', $allowed_roles ) ) !== false) {
          unset($allowed_roles[$key]);
        }
      	return $allowed_roles;
      }, 500 );

      Thank You

Viewing 1 reply thread
  • The topic ‘Vendor vs. Disabled Vendor vs. Expired-Membership Vendor’ is closed to new replies.