# learnpress/4.4.8/inc/admin/views/admin-notices/wp-remote.php

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

- Page: https://pluginprobe.com/plugins/learnpress/4.4.8/code/inc/admin/views/admin-notices/wp-remote.php
- Raw: https://pluginprobe.com/plugins/learnpress/4.4.8/raw/inc/admin/views/admin-notices/wp-remote.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/inc/admin/views/admin-notices/wp-remote.php#L10-L20`.

```php
<?php
/**
 * Template for display error wp_remote.
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

if ( ! isset( $data ) || ! isset( $data['check'] ) ) {
	return;
}

if ( ! is_wp_error( $data['check'] ) ) {
	return;
}

/**
 * @var WP_Error $wp_error
 */
$wp_error      = $data['check'];
$message_error = $wp_error->get_error_message();
?>

<div class="lp-admin-notice notice notice-error">
	<p>
		<?php
		echo sprintf(
			'%s %s. <a href="%s">%s</a>',
			'<strong>wp_remote_get</strong>: ',
			$message_error,
			admin_url( 'site-health.php' ),
			__( 'Check Site Health', 'learnpress' )
		);
		?>
	</p>
</div>

```
