Skip to content

Instantly share code, notes, and snippets.

@Shelob9 Shelob9/1.php
Created Jun 27, 2018

What would you like to do?
if (!version_compare(PHP_VERSION, '5.6.0', '>=')) {
function slug_php_version_nag()
<div class="notice notice-error">
<?php _e('Your version of PHP is incompatible with YOUR PLUGIN and can not be used.', 'caldera-forms'); ?>
<?php printf(' <a href="" target="__blank">%s</a>',
esc_html__('Learn More', 'slug')
) ?></p>
add_action('admin_notices', 'slug_php_version_nag');
=== Your plugin ===
Contributors: Shelob9
Tags: hi-oy
Requires at least: 4.7
Tested up to: 4.9.7
Stable tag: 1.7.2
License: GPLv2
Requires PHP: 5.6

This comment has been minimized.

Copy link

commented Sep 3, 2018

Hey, Josh. I saw this gist embedded at

For those who copy/paste without reading first, please change that License to add or any later version -- better yet, GPL version 3 or any later version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.