1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
<?php
defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
if (!function_exists('rml_skip_php_admin_notice')) {
function rml_skip_php_admin_notice() {
if (current_user_can('install_plugins')) {
extract(get_plugin_data(RML_FILE, true, false));
echo '<div class=\'notice notice-error\'>
<p><strong>' . $Name . '</strong> could not be initialized because you need minimum PHP version ' . RML_MIN_PHP . ' ... you are running: ' . phpversion() . '.
</div>';
}
}
}
add_action('admin_notices', 'rml_skip_php_admin_notice');