| 1 |
<?php |
| 2 |
|
| 3 |
defined( 'ABSPATH' ) || exit; |
| 4 |
|
| 5 |
add_action( |
| 6 |
'admin_notices', |
| 7 |
function() { |
| 8 |
if ( current_user_can( 'activate_plugins' ) ) { |
| 9 |
?> |
| 10 |
<div class="notice notice-error is-dismissible"> |
| 11 |
<p> |
| 12 |
<strong> |
| 13 |
<?php |
| 14 |
// translators: %1$s: current PHP version, |
| 15 |
printf( esc_html__( 'YayMail requires PHP 7.2.0 to work and does not support your current PHP version %1$s. Please contact your host and request a PHP upgrade to the latest one.', 'yaymail' ), esc_html( phpversion() ) ) |
| 16 |
?> |
| 17 |
</strong> |
| 18 |
</p> |
| 19 |
</div> |
| 20 |
<?php |
| 21 |
} |
| 22 |
} |
| 23 |
); |
| 24 |
|