-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathreseller-store.php
executable file
·60 lines (49 loc) · 1.33 KB
/
reseller-store.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
49
50
51
52
53
54
55
56
57
58
59
60
<?php
/**
* Plugin Name: Reseller Store
* Description: Sell hosting, domains, and more right from your WordPress site.
* Version: 2.2.15
* Author: GoDaddy
* Author URI: https://reseller.godaddy.com/
* License: GPL-2.0
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: reseller-store
* Domain Path: /languages
*
* This plugin, like WordPress, is licensed under the GPL.
* Use it to make something cool, have fun, and share what you've learned with others.
*
* Copyright © 2019 GoDaddy Operating Company, LLC. All Rights Reserved.
*/
namespace Reseller_Store;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( version_compare( phpversion(), '5.4.0', '<' ) ) {
add_action(
'admin_notices',
function() {
?>
<div class="update-nag">
<?php
echo sprintf(
/* translators: server PHP version */
esc_html__( 'You need to update your PHP version to run GoDaddy Reseller Store plugin. Required version 5.4 or higher. Your PHP version is: %s', 'reseller-store' ),
esc_html( phpversion() )
);
?>
</div>
<?php
}
);
} else {
require_once __DIR__ . '/includes/autoload.php';
require_once __DIR__ . '/class-plugin.php';
rstore();
/**
* Register deactivation hook.
*
* @since 0.2.0
*/
register_deactivation_hook( __FILE__, array( __NAMESPACE__ . '\Setup', 'deactivate' ) );
}