PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.1.7
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.1.7
4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 4.1.7.3.2 4.2.0 4.2.1 All 138 releases
learnpress / templates / checkout / form.php

form.php in LearnPress – WordPress LMS Plugin for Create and Sell Online Courses 4.1.7, at templates/checkout/form.php

50 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Template for displaying checkout form.
4 *
5 * This template can be overridden by copying it to yourtheme/learnpress/checkout/form.php.
6 *
7 * @author ThimPress
8 * @package Learnpress/Templates
9 * @version 4.0.1
10 */
11
12 defined( 'ABSPATH' ) || exit();
13
14 $checkout = LP()->checkout();
15
16 learn_press_print_messages();
17
18 if ( ! is_user_logged_in() ) {
19 ?>
20 <div class="learn-press-message error">
21 <?php _e( 'Please login to enroll the course!', 'learnpress' ); ?>
22 </div>
23 <?php
24 }
25 ?>
26
27 <form method="post" id="learn-press-checkout-form" name="learn-press-checkout-form" class="lp-checkout-form" tabindex="0" action="<?php echo esc_url_raw( learn_press_get_checkout_url() ); ?>" enctype="multipart/form-data">
28 <?php
29 if ( has_action( 'learn-press/before-checkout-form' ) ) {
30 ?>
31 <div class="lp-checkout-form__before">
32 <?php do_action( 'learn-press/before-checkout-form' ); ?>
33 </div>
34 <?php
35 }
36
37 do_action( 'learn-press/checkout-form' );
38
39 if ( has_action( 'learn-press/after-checkout-form' ) ) {
40 ?>
41 <div class="lp-checkout-form__after">
42 <?php do_action( 'learn-press/after-checkout-form' ); ?>
43 </div>
44 <?php
45 }
46 ?>
47 </form>
48
49 <?php
50