# learnpress/4.3.8/templates/global/lp-message.php

LearnPress – WordPress LMS Plugin for Create and Sell Online Courses, version 4.3.8. 24 lines.

- Page: https://pluginprobe.com/plugins/learnpress/4.3.8/code/templates/global/lp-message.php
- Raw: https://pluginprobe.com/plugins/learnpress/4.3.8/raw/templates/global/lp-message.php
- Modified: 2026-06-01T03:47:14+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.3.8/code/templates/global/lp-message.php#L10-L20`.

```php
<?php
/**
 * Template for displaying global message.
 *
 * This template can be overridden by copying it to yourtheme/learnpress/global/lp-message.php.
 *
 * @author  ThimPress
 * @package  Learnpress/Templates
 * @version  1.0.1
 * @since  4.2.0
 */

defined( 'ABSPATH' ) || exit();

if ( ! isset( $customer_message ) || ! isset( $customer_message['content'] ) || ! isset( $customer_message['status'] ) ) {
	return;
}

$classes = array( 'learn-press-message', $customer_message['status'], 'lp-content-area' );
?>
<div
	class="<?php echo esc_attr( join( ' ', $classes ) ); ?>"><?php echo wp_kses_post( $customer_message['content'] ); ?>
</div>

```
