contract free membership just once

Home Forums WordPress Theme EasyBook – WordPress Theme contract free membership just once

This topic contains 2 replies, has 2 voices, and was last updated by  thesmf 2 weeks, 3 days ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #37976

    thesmf
    Participant

    Supported

    Hello
    We would like to know how to set that one of our free membership plans could be bought just once. We have a membership Plan Lanzamiento that has all characteristics of Premium plan and people could use them for free for 3 months. Then, when the subscription is over, user could select one of the three paid subscriptions available or stay with Basic characteristics.
    So, we need this Lanzamiento plan could be contracted just one time per user. How could we do that?
    Thank you

    #37996

    CTHthemes
    Keymaster

    Edit code like this: https://prnt.sc/pqxoqg
    Replace 100 value with your free plan id

    
    if( is_user_logged_in() && get_user_meta( get_current_user_id(), ESB_META_PREFIX.'member_plan',  true ) == 100 ){
        $post_args['post__not_in'] = array(100);
    }
    
    #38071

    thesmf
    Participant

    Supported

    Awesome!
    If we need to add another plan to that restriction, we just need to add that code once again with the plan ID number, don’t we?
    Thank you so much for your help.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

New featues: CityBook - Listing & Directory WordPress Theme version 2.1.8 was outUpdate now
+