# learnpress/4.4.8/templates/profile/tabs/orders/order-message.php

LearnPress – WordPress LMS Plugin for Create and Sell Online Courses, version 4.4.8. 27 lines.

- Page: https://pluginprobe.com/plugins/learnpress/4.4.8/code/templates/profile/tabs/orders/order-message.php
- Raw: https://pluginprobe.com/plugins/learnpress/4.4.8/raw/templates/profile/tabs/orders/order-message.php
- Modified: 2026-09-18T11:22:50+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/learnpress/4.4.8/code/templates/profile/tabs/orders/order-message.php#L10-L20`.

```php
<?php
/**
 * @author  ThimPress
 * @package LearnPress/Templates
 * @version 4.0.0
 * @deprecated 4.2.6.4
 */
return;

defined( 'ABSPATH' ) || exit();

if ( ! isset( $order ) ) {
	return;
}

$profile = LP_Profile::instance();
?>

<?php if ( $order->get_user_id() != get_current_user_id() ) : ?>
	<p><?php printf( __( 'This order is paid for %s', 'learnpress' ), $order->get_user_email() ); ?></p>
<?php else : ?>
	<?php $checkout_email = $order->get_checkout_email(); ?>
	<?php if ( $checkout_email && $checkout_email != $profile->get_user()->get_email() ) : ?>
		<p><?php printf( __( 'This order is paid by %s', 'learnpress' ), $order->get_checkout_email() ); ?></p>
	<?php endif; ?>
<?php endif; ?>

```
