PluginProbe
Media Cloud Sync / 1.4.0
Media Cloud Sync v1.4.0
1.4.0 1.3.12 1.3.11 1.3.10 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.2.0 1.2.10 1.2.11 1.2.12 1.2.13 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 All 34 releases
media-cloud-sync / media-cloud-sync.php

media-cloud-sync.php in Media Cloud Sync 1.4.0, at media-cloud-sync.php

53 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: Media Cloud Sync
4 * Version: 1.4.0
5 * Description: Media Cloud Sync helps to sync your wordpress media to the cloud based services like Amazon S3, DigitalOcean Spaces, Google Cloud Storage, Cloudflare R2 and S3 Compatible Services.
6 * Author: Dudlewebs
7 * Author URI: http://dudlewebs.com
8 * License: GPLv2 or later
9 * Requires at least: 5.9
10 * Tested up to: 7.1
11 * Requires PHP: 8.1
12 * Text Domain: media-cloud-sync
13 */
14
15 defined('ABSPATH') || exit;
16
17 if (!defined('WPMCS_FILE')) {
18 define('WPMCS_FILE', __FILE__);
19 }
20
21 define('WPMCS_VERSION', '1.4.0');
22 define('WPMCS_PLUGIN_NAME', 'Media Cloud Sync');
23
24 define('WPMCS_TOKEN', 'wpmcs');
25 define('WPMCS_PATH', plugin_dir_path(WPMCS_FILE));
26 define('WPMCS_URL', plugins_url('/', WPMCS_FILE));
27
28 define('WPMCS_ASSETS_PATH', WPMCS_PATH . 'assets/');
29 define('WPMCS_ASSETS_URL', WPMCS_URL . 'assets/');
30 define('WPMCS_INCLUDES_PATH', WPMCS_PATH . 'includes/');
31 define('WPMCS_SDK_PATH', WPMCS_INCLUDES_PATH . 'sdk/');
32
33 define('WPMCS_ITEM_TABLE', WPMCS_TOKEN.'_items');
34 define('WPMCS_DB_VERSION', '1.0.6');
35 // Force DB upgrade using UI if needed
36 define('WPMCS_DB_UPGRADE_VERSION', '1.0.0');
37
38 add_action('plugins_loaded', 'wpmcs_load_plugin_textdomain');
39
40 require WPMCS_INCLUDES_PATH . 'main.php';
41
42 /**
43 * Load Plugin textdomain.
44 *
45 * Load gettext translate for Plugin text domain.
46 *
47 * @return void
48 * @since 1.0.0
49 *
50 */
51 function wpmcs_load_plugin_textdomain(){
52 load_plugin_textdomain('media-cloud-sync');
53 }