This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function mpws_show_minimum_term_notice( $subscription ) { | |
$mpws_get_global_cancel_notice = get_option( 'mpws_allow_cancelling', 'yes' ); | |
$mpws_get_global_min_periods_notice = get_option( 'mpws_allow_cancelling_periods', '0' ); | |
if ( 'yes' === $mpws_get_global_cancel_notice ) { | |
foreach ( $subscription->get_items() as $item ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function mpws_show_minimum_term( $subscription ) { | |
$mpws_get_global_cancel = get_option( 'mpws_allow_cancelling', 'yes' ); | |
$mpws_get_global_min_periods = get_option( 'mpws_allow_cancelling_periods', '0' ); | |
if ( 'yes' === $mpws_get_global_cancel ) { | |
foreach ( $subscription->get_items() as $item ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function mpws_show_paid_terms( $subscription ) { | |
$mpws_get_global_cancel = get_option( 'mpws_allow_cancelling', 'yes' ); | |
$mpws_get_global_min_periods = get_option( 'mpws_allow_cancelling_periods', '0' ); | |
$mpws_get_paid_count = $subscription->get_payment_count(); | |
if ( 'yes' === $mpws_get_global_cancel ) { | |
foreach ( $subscription->get_items() as $item ) { |