Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    To remove the Renew option for the Free plans follow the steps below:

    Create an empty plugin like this: https://gist.github.com/sareiodata/76f701e01db6685829db

    Add the following code to the end of it:

    /*
     * Filter to remove the Renew feature for the Free plan in PMS
     */
    
    add_filter('pms_output_subscription_plan_action_renewal', 'pmsc_remove_the_renew_option_for_free_pan', 20, 4);
    function pmsc_remove_the_renew_option_for_free_pan($string,$subscription_plan, $member_subscription, $member_id){
        if(empty($subscription_plan->price)){
            return '';
        } else {
            return $string;
        }
    };

    Install this plugin via FTP (copy it inside wp-content/plugins) or create a zip archive with it and install it via the WordPress plugin upload functionality

    To restrict text inside a text widget use the [pms-restrict] shortcode.

    Best regards,

    Thread Starter dalethebrave

    (@dalethebrave)

    Thank you Teodor once again!

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Free Account and Widgets’ is closed to new replies.