Modify Renew button output time

By default, we show the Renew button inside the [pms-account] shortcode 15 days before a users subscription is due to expire.
With this piece of code you can make it show sooner or later.

1
2
3
4
add_filter('pms_output_subscription_plan_action_renewal_time', 'pmsc_modify_renewal_action_output_time');
function pmsc_modify_renewal_action_output_time() {
    return 30;
}