| Server IP : 104.21.28.229 / Your IP : 216.73.216.142 Web Server : Apache/2 System : Linux hosting8537.lvs 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : mienphi ( 1014) PHP Version : 8.2.14 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/mienphi/public_html/wp-content/plugins/learnpress/templates/checkout/ |
Upload File : |
<?php
/**
* Template for displaying checkout form.
*
* This template can be overridden by copying it to yourtheme/learnpress/checkout/form.php.
*
* @author ThimPress
* @package Learnpress/Templates
* @version 4.0.4
*/
defined( 'ABSPATH' ) || exit();
$checkout = LearnPress::instance()->checkout();
?>
<?php
if ( ! is_user_logged_in() ) {
?>
<div class="learn-press-message error">
<?php _e( 'Please log in to enroll in the course!', 'learnpress' ); ?>
</div>
<?php
}
learn_press_show_message();
?>
<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">
<?php
if ( has_action( 'learn-press/before-checkout-form' ) ) {
?>
<div class="lp-checkout-form__before">
<?php do_action( 'learn-press/before-checkout-form' ); ?>
</div>
<?php
}
do_action( 'learn-press/checkout-form' );
if ( has_action( 'learn-press/after-checkout-form' ) ) {
?>
<div class="lp-checkout-form__after">
<?php do_action( 'learn-press/after-checkout-form' ); ?>
</div>
<?php
}
wp_nonce_field( 'learn-press-checkout', 'learn-press-checkout-nonce', false );
?>
</form>
<?php