function InstapageCmsPluginWPConnector::checkPluginRequirementsOnActivation in Instapage plugin 7.3
Same name and namespace in other branches
- 8.3 core/connectors/InstapageCmsPluginWPConnector.php \InstapageCmsPluginWPConnector::checkPluginRequirementsOnActivation()
File
- core/
connectors/ InstapageCmsPluginWPConnector.php, line 374
Class
- InstapageCmsPluginWPConnector
- Class that utilizes native WordPress functions to perform actions like remote requests and DB operations.
Code
function checkPluginRequirementsOnActivation() {
if (version_compare(PHP_VERSION, MINIUM_PHP_VERSION, '<')) {
deactivate_plugins(INSTAPAGE_PLUGIN_PATH . '/instapage.php');
wp_die('<h2>Outdated PHP version</h2>' . '<p>' . __('Our Instapage plugin requires PHP ') . MINIUM_PHP_VERSION . __(' or newer. ') . __('Your current PHP version is: ') . PHP_VERSION . '.' . '</p>', 'Outdated PHP version', array(
'response' => 200,
'back_link' => TRUE,
));
}
}