';
echo '
' . esc_html__( 'IntelTele WooCommerce SMS/Viber', 'inteltele' ) . '
';
echo '';
foreach ( $issues as $issue ) {
echo '- ' . esc_html( $issue ) . '
';
}
echo '
';
echo '';
}
/**
* Get current environment issues.
*
* @return string[]
*/
public static function get_issues(): array {
global $wp_version;
$issues = array();
if ( version_compare( PHP_VERSION, INTELTELE_MIN_PHP, '<' ) ) {
$issues[] = sprintf(
/* translators: 1: required PHP version, 2: current PHP version. */
__( 'PHP %1$s or higher is required. Current version: %2$s.', 'inteltele' ),
INTELTELE_MIN_PHP,
PHP_VERSION
);
}
if ( isset( $wp_version ) && version_compare( $wp_version, INTELTELE_MIN_WP, '<' ) ) {
$issues[] = sprintf(
/* translators: 1: required WordPress version, 2: current WordPress version. */
__( 'WordPress %1$s or higher is required. Current version: %2$s.', 'inteltele' ),
INTELTELE_MIN_WP,
$wp_version
);
}
if ( ! class_exists( 'WooCommerce' ) ) {
$issues[] = __( 'WooCommerce is not active. Order status automation will be unavailable until WooCommerce is activated.', 'inteltele' );
}
return $issues;
}
}