success.php 447 Bytes
Newer Older
cyrille's avatar
cyrille committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
<?php
/**
 * Show success notices
 *
 * @package     Lifterlms/Templates
 *
 * @since       1.0.0
 * @version     1.0.0
 */

defined( 'ABSPATH' ) || exit;

if ( ! $messages ) {
	return;
}
?>
<?php do_action( 'lifterlms_before_success_notices' ); ?>
<?php foreach ( $messages as $message ) : ?>
	<div class="llms-notice llms-success"><?php print_r( $message ); ?></div>
<?php endforeach; ?>
<?php do_action( 'lifterlms_after_success_notices' ); ?>