This topic has 6 replies, 2 voices, and was last updated 7 years by Laura.

  • Author
  • #179276
     cga
    Participant

    Hi everyone,

    I have a question about membership. You provide a piece of code for a user to suscribe as default level

    add_action(‘user_register’, ‘kleo_pmpro_default_level’);

    function kleo_pmpro_default_level($user_id) {

    pmpro_changeMembershipLevel(1,$user_id);

    }

    I need to add an expiration date in the code. Can you tell me how I can do it? 

    Thanks

     

    #179416
     Laura
    Moderator

    Hello, what do you mean by expiration? That is not available, you will have to delete the code when you don’t want to use it anymore

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #179554
     cga
    Participant

    Hi,
    thanks for your reply.

    I need users to register for free for 48 hours. After that access must be blocked until the customer chooses a payment method. Is it possible?
    Thanks.

    #179722
     Laura
    Moderator

    Hello, you can create a level that expired in 48h and has access to all ( i suggest disabling private messages ) and this way when they register ( make sure that accounts with no leve has restrictions to all ) after they choose the trial they can test it and after 48h its expired

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #179728
     cga
    Participant

    Hi, in fact, you can create a level with a date expiration but I have a problem.
    When the customer logs with the registration form, it does nothing.
    I need when you use the registration form, automatically do it for free and for 48 hours.
    I saw here a piece of code that could do that but I can’t insert the expiration date.
    What can I do to make it free and for 48 hours through the registration form?

    Thanks

    #179847
     Laura
    Moderator

    Hello, what we can do, is automatically assign all new users that free level, i can help you with that but will need admin access

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #179848
     Laura
    Moderator

    Is like your code, but the level itself expires after 48h it can be setup at the level settings, not at the code

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

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

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?