mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
Display admin message if php is lower than 7.1
This commit is contained in:
parent
0668a9c924
commit
7baa0a17ce
1 changed files with 10 additions and 0 deletions
|
@ -59,6 +59,16 @@ define( 'PPCP_FLAG_SUBSCRIPTION', true );
|
|||
|
||||
return;
|
||||
}
|
||||
if ( version_compare( PHP_VERSION, '7.1', '<' ) ) {
|
||||
add_action(
|
||||
'admin_notices',
|
||||
function() {
|
||||
echo '<div class="error"><p>' . esc_html__( 'WooCommerce PayPal Payments requires PHP 7.1 or above.', 'woocommerce-paypal-payments' ), '</p></div>';
|
||||
}
|
||||
);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
static $initialized;
|
||||
if ( ! $initialized ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue