PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.9
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.9
4.4.9 4.4.8 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 All 140 releases
← All changes | templates/checkout/account-login.php +9 -4 4.1.7.3 → 4.4.9 View file →
@@ -15,9 +15,8 @@
15 15 return;
16 16 }
17 17 ?>
18 18
19 -<input type="radio" id="checkout-account-switch-to-login" checked="checked" name="checkout-account-switch-form" value="login"/>
20 19 <div id="checkout-account-login" class="lp-checkout-block left">
21 20
22 21 <h4><?php esc_html_e( 'Sign in', 'learnpress' ); ?></h4>
23 22
@@ -33,9 +32,9 @@
33 32 </ul>
34 33
35 34 <?php do_action( 'learn-press/after-checkout-account-login-fields' ); ?>
36 35
37 - <input type="hidden" name="learn-press-checkout-nonce" value="<?php echo wp_create_nonce( 'learn-press-checkout-login' ); ?>">
36 +<!-- <input type="hidden" name="learn-press-checkout-nonce" value="--><?php //echo wp_create_nonce( 'learn-press-checkout-login' ); ?><!--">-->
38 37 <p class="lp-checkout-remember">
39 38 <label>
40 39 <input type="checkbox" name="rememberme"/>
41 40 <?php esc_html_e( 'Remember me', 'learnpress' ); ?>
@@ -45,13 +44,19 @@
45 44 <?php esc_html_e( 'Lost password?', 'learnpress' ); ?>
46 45 </a>
47 46 </p>
48 47
48 + <?php
49 + // Add hook of WordPress
50 + do_action( 'login_form' );
51 + do_action( 'login_enqueue_scripts' );
52 + ?>
53 +
49 54 <p class="lp-checkout-sign-up-link">
50 55 <?php if ( LearnPress::instance()->checkout()->is_enable_register() ) : ?>
51 56 <?php esc_html_e( 'Don\'t have an account?', 'learnpress' ); ?>
52 - <a href="javascript: void(0);">
53 - <label for="checkout-account-switch-to-register"><?php echo esc_html_x( 'Sign up', 'checkout sign up link', 'learnpress' ); ?></label>
57 + <a href="<?php echo esc_url( add_query_arg( 'is_form_register', '1', LP_Helper::get_link_no_cache( learn_press_get_page_link( 'checkout' ) ) ) ); ?>">
58 + <?php echo esc_html_x( 'Sign up', 'checkout sign up link', 'learnpress' ); ?>
54 59 </a>.
55 60 <?php endif; ?>
56 61
57 62 <?php learn_press_get_template( 'checkout/guest-checkout-link' ); ?>