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