Code to Know Membership Types

WooCommerce Multivendor Marketplace – Home Forums Product Vendors Code to Know Membership Types

This topic contains 1 reply, has 2 voices, and was last updated by WCfM Forum WCfM Forum 8 months, 1 week ago.

  • Author
  • #23046

    Kanika G

    HI, I have bought WCFM – Ultimate and Group & Staff plugins and wanted to know if there is any function/code to know the membership type of the vendor? I want to add a custom condition based on the vendor type for example: If User’s Membership if Silver, Do that.

    Please let me know how can I achieve this.


  • #23048
    WCfM Forum
    WCfM Forum


    Thanks for get in touch with us.

    You may use this code to membership plan ID for a vendor –

    $wcfm_membership_id = get_user_meta( $vendor_id, 'wcfm_membership', true );

    Thank You

The topic ‘Code to Know Membership Types’ is closed to new replies.