</div> <?php do_action('woocommerce_skip_one_after_skip_option'); ?> <?php do_action('woocommerce_skip_one_before_cancel_option'); ?> <br> <h4><?php _e('No that\'s OK. I just want to Cancel!', 'woocommerce-skip-one'); ?> </h4> <?php do_action('woocommerce_skip_one_cancel_message'); ?> <a class="button cancel-subscription" href="<?php echo WCSO_Display::get_confirm_cancel_sub_url($subscription->id); ?> "><?php echo apply_filters('woocommerce_skip_one_cancel_subscription_button_text', __('Cancel Subscription', 'woocommerce-skip-one')); ?> </a> <?php do_action('woocommerce_skip_one_after_cancel_option');
} // END get_skip_sub_url() /** * This returns the next billing period the customer * will continue the subscription. */ public static function get_next_continued_payment($subscription) { $subscription = !is_object($subscription) ? wcs_get_subscription($subscription) : $subscription; switch ($subscription->billing_period) { case 'day': $next_subscription = ''; break; case 'week': $next_subscription = ''; break; case 'month': $next_payment = $subscription->get_date('next_payment'); $date_next_payment = $subscription->get_date_to_display('next_payment'); $next_subscription = ''; break; case 'year': $next_subscription = ''; break; } // END switch } } // END Class WCSO_Display::init();