-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathload.php
48 lines (39 loc) · 1.07 KB
/
load.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
/*
Plugin Name: iThemes Exchange - Terms of Service add-on
Plugin URI: https://ironbounddesigns.com
Description: Have your customers agree to your Terms of Service when purchasing your products.
Version: 1.0.2
Author: Iron Bound Designs
Author URI: https://ironbounddesigns.com
License: GPLv2
Text Domain: ibd-exchange-addon-tos
Domain Path: /lang
*/
if ( version_compare( phpversion(), '5.3', '<' ) ) {
/**
* Displays a message saying this plugin requires php 5.3 or higher.
*
* @since 1.0
*/
function itetos_outdated_php() {
?>
<div class="notice notice-error">
<p><?php _e( "iThemes Exchange Terms of Service requires PHP version 5.3 or higher.", 'ibd-exchange-addon-tos' ); ?></p>
</div>
<?php
}
add_action( 'admin_notices', 'itetos_outdated_php' );
/**
* Deactivate the plugin.
*
* @since 1.0
*/
function itetos_deactivate_self() {
deactivate_plugins( plugin_basename( __FILE__ ) );
}
add_action( 'admin_init', 'itetos_deactivate_self' );
return;
} else {
require_once plugin_dir_path( __FILE__ ) . 'exchange-addon-terms-of-service.php';
}