Code to Know Membership Types

WooCommerce Frontend Manager – 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 2 weeks, 3 days ago.

  • Author
    Posts
  • #23046 Reply

    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.

    Thanks

  • #23048 Reply
    WCfM Forum
    WCfM Forum
    Keymaster

    Hi,

    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

Reply To: Code to Know Membership Types
Your information: