-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathamazon-cloud-services.php
More file actions
68 lines (53 loc) · 1.94 KB
/
Copy pathamazon-cloud-services.php
File metadata and controls
68 lines (53 loc) · 1.94 KB
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
61
62
63
64
65
66
67
68
<?php
/*
* Plugin Name: Amazon Web Services
* Plugin URI: https://code.recuweb.com/download/amazon-cloud-services/
* Description: This plugin provides the Amazon Web Services SDK to integrate Amazon Services such as S3 or SES
* Version: 3.0.5
* Author: Rafasashi
* Author URI: https://code.recuweb.com/about-us/
* Requires at least: 4.6
* Tested up to: 4.9.6
*
* Text Domain: amazon_cloud_services
* Domain Path: /lang/
*
* Copyright: © 2018 Recuweb.
* License: GNU General Public License v3.0
* License URI: https://code.recuweb.com/product-licenses/
*/
if(!defined('ABSPATH')) exit; // Exit if accessed directly
/**
* Minimum version required
*
*/
if ( get_bloginfo('version') < 3.3 ) return;
// Load plugin class files
require_once( 'includes/class-amazon-cloud-services.php' );
require_once( 'includes/class-amazon-cloud-services-settings.php' );
// Load plugin libraries
require_once( 'includes/lib/class-amazon-cloud-services-admin-api.php' );
require_once( 'includes/lib/class-amazon-cloud-services-admin-notices.php' );
require_once( 'includes/lib/class-amazon-cloud-services-post-type.php' );
require_once( 'includes/lib/class-amazon-cloud-services-taxonomy.php' );
add_action('wp2e_autoload_amazon-cloud-services',function(){
require_once __DIR__ . '/sdk/v3/vendor/autoload.php';
do_action('wp2e_amazon-cloud-services_loaded');
});
/**
* Returns the main instance of Amazon_Cloud_Services to prevent the need to use globals.
*
* @since 1.0.0
* @return object Amazon_Cloud_Services
*/
function Amazon_Cloud_Services() {
$instance = Amazon_Cloud_Services::instance( __FILE__, time() );
if ( is_null( $instance->notices ) ) {
$instance->notices = Amazon_Cloud_Services_Admin_Notices::instance( $instance );
}
if ( is_null( $instance->settings ) ) {
$instance->settings = Amazon_Cloud_Services_Settings::instance( $instance );
}
return $instance;
}
Amazon_Cloud_Services();