credit-card-fields.php
4 years ago
form-account-info-fields.php
3 months ago
form-billing-fields.php
4 years ago
form-checkout-sidebar.php
1 year ago
form-checkout-submit-btn.php
1 month ago
form-checkout.php
1 week ago
form-login.php
3 years ago
form-payment-methods.php
1 year ago
form-terms.php
10 months ago
group-selector.php
1 year ago
index.php
4 years ago
form-checkout-submit-btn.php
20 lines
| 1 | <?php |
| 2 | |
| 3 | use ProfilePress\Core\Membership\Models\Plan\PlanEntity; |
| 4 | |
| 5 | /** @global $order_total */ |
| 6 | /** @global PlanEntity $plan */ |
| 7 | |
| 8 | $submit_button_text = apply_filters('ppress_checkout_order_button_text', sprintf(esc_html__('Pay %s', 'wp-user-avatar'), ppress_display_amount($order_total)), $order_total, $plan); |
| 9 | |
| 10 | if ($plan->is_recurring()) $submit_button_text = esc_html__('Subscribe', 'wp-user-avatar'); |
| 11 | |
| 12 | if ($plan->has_free_trial()) $submit_button_text = esc_html__('Start Trial', 'wp-user-avatar'); |
| 13 | |
| 14 | $submit_button_text = apply_filters('ppress_checkout_order_button_text', $submit_button_text, $order_total, $plan); |
| 15 | |
| 16 | ?> |
| 17 | |
| 18 | <div class="ppress-checkout-form__place_order_wrap ppress-checkout-submit"> |
| 19 | <input id="ppress-checkout-button" name="ppress-checkout" type="submit" value="<?= $submit_button_text ?>"> |
| 20 | </div> |