• Resolved Jean-Michel Ferrard

    (@jean-michel-ferrard)


    Hello again

    Is it possible to create a plan which cannot be renewed by its owner?

    Thanks !

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support madalinaruzsa

    (@madalinaruzsa)

    Hi @jean-michel-ferrard,

    You can use the following code to hide de renew button for a certain plan:

    add_filter( ‘pms_output_subscription_plan_action_renewal’, ‘pmsc_remove_renew_from_plan’, 20, 2 );
    function pmsc_remove_renew_from_plan( $output, $subscription_plan ){
    if( $subscription_plan->id == ‘IDplan’ )
    return ”;
    return $output;
    }

    For ID plan you go to PMS-> Subscriptions plan-> ID.

    You can use this code by adding it to your theme’s ‘functions.php’ file or by creating a new plugin as described here.

    Kind regards,
    Madalina Ruzsa
    Cozmoslabs

    Thread Starter Jean-Michel Ferrard

    (@jean-michel-ferrard)

    Hi @madalinaruzsa

    It works. Thank you !

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Unrenewable plan’ is closed to new replies.