PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.8
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.8
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 4.2.0 All 139 releases
← All changes | templates/profile/tabs/orders/order-message.php +26 -26 4.3.8 → 4.4.8 View file →
@@ -1,26 +1,26 @@
1 -<?php
2 -/**
3 - * @author ThimPress
4 - * @package LearnPress/Templates
5 - * @version 4.0.0
6 - * @deprecated 4.2.6.4
7 - */
8 -return;
9 -
10 -defined( 'ABSPATH' ) || exit();
11 -
12 -if ( ! isset( $order ) ) {
13 - return;
14 -}
15 -
16 -$profile = LP_Profile::instance();
17 -?>
18 -
19 -<?php if ( $order->get_user_id() != get_current_user_id() ) : ?>
20 - <p><?php printf( __( 'This order is paid for %s', 'learnpress' ), $order->get_user_email() ); ?></p>
21 -<?php else : ?>
22 - <?php $checkout_email = $order->get_checkout_email(); ?>
23 - <?php if ( $checkout_email && $checkout_email != $profile->get_user()->get_email() ) : ?>
24 - <p><?php printf( __( 'This order is paid by %s', 'learnpress' ), $order->get_checkout_email() ); ?></p>
25 - <?php endif; ?>
26 -<?php endif; ?>
1 +<?php
2 +/**
3 + * @author ThimPress
4 + * @package LearnPress/Templates
5 + * @version 4.0.0
6 + * @deprecated 4.2.6.4
7 + */
8 +return;
9 +
10 +defined( 'ABSPATH' ) || exit();
11 +
12 +if ( ! isset( $order ) ) {
13 + return;
14 +}
15 +
16 +$profile = LP_Profile::instance();
17 +?>
18 +
19 +<?php if ( $order->get_user_id() != get_current_user_id() ) : ?>
20 + <p><?php printf( __( 'This order is paid for %s', 'learnpress' ), $order->get_user_email() ); ?></p>
21 +<?php else : ?>
22 + <?php $checkout_email = $order->get_checkout_email(); ?>
23 + <?php if ( $checkout_email && $checkout_email != $profile->get_user()->get_email() ) : ?>
24 + <p><?php printf( __( 'This order is paid by %s', 'learnpress' ), $order->get_checkout_email() ); ?></p>
25 + <?php endif; ?>
26 +<?php endif; ?>