|
@@ 281-283 (lines=3) @@
|
| 278 |
|
} |
| 279 |
|
|
| 280 |
|
// Format subscription sign up fee. |
| 281 |
|
if ( isset( $posted_scheme[ 'subscription_sign_up_fee' ] ) ) { |
| 282 |
|
$posted_scheme[ 'subscription_sign_up_fee' ] = ( $posted_scheme[ 'subscription_sign_up_fee' ] === '' ) ? '' : wc_format_decimal( $posted_scheme[ 'subscription_sign_up_fee' ] ); |
| 283 |
|
} |
| 284 |
|
|
| 285 |
|
// Format subscription trial length. |
| 286 |
|
if ( isset( $posted_scheme[ 'subscription_trial_length' ] ) ) { |
|
@@ 286-288 (lines=3) @@
|
| 283 |
|
} |
| 284 |
|
|
| 285 |
|
// Format subscription trial length. |
| 286 |
|
if ( isset( $posted_scheme[ 'subscription_trial_length' ] ) ) { |
| 287 |
|
$posted_scheme[ 'subscription_trial_length' ] = ( $posted_scheme[ 'subscription_trial_length' ] === '' ) ? '' : wc_format_decimal( $posted_scheme[ 'subscription_trial_length' ] ); |
| 288 |
|
} |
| 289 |
|
|
| 290 |
|
// Format subscription trial period. |
| 291 |
|
$trial_periods = apply_filters( 'wcsatt_stt_trial_periods', array( 'day', 'week', 'month', 'year' ) ); |