2023-06-22 08:23:43 +02:00
|
|
|
<?php
|
|
|
|
|
/**
|
2025-12-12 13:13:07 +01:00
|
|
|
* Plugin Name: EasyMedia - Increase Media Upload Size
|
|
|
|
|
* Description:EasyMedia will increase upload limit with one click. If your hosting provider does not allow uploading more than 2MB then the plugin will help you!
|
|
|
|
|
* Author: CodePopular
|
|
|
|
|
* Author URI: https://codepopular.com
|
|
|
|
|
* Plugin URI: https://wordpress.org/plugins/wp-maximum-upload-file-size/
|
|
|
|
|
* Version: 3.0.3
|
|
|
|
|
* License: GPL2
|
|
|
|
|
* Text Domain: wp-maximum-upload-file-size
|
|
|
|
|
* Requires at least: 4.0
|
|
|
|
|
* Tested up to: 6.8
|
|
|
|
|
* Requires PHP: 7.0
|
|
|
|
|
*
|
|
|
|
|
* @coypright: -2025 CodePopular (support: info@codepopular.com)
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
|
|
define( 'WMUFS_PLUGIN_FILE', __FILE__ );
|
|
|
|
|
define( 'WMUFS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
|
|
|
|
|
define( 'WMUFS_PLUGIN_PATH', trailingslashit( plugin_dir_path( __FILE__ ) ) );
|
|
|
|
|
define( 'WMUFS_PLUGIN_URL', trailingslashit( plugins_url( '/', __FILE__ ) ) );
|
|
|
|
|
define( 'WMUFS_PLUGIN_VERSION', '3.0.3' );
|
2023-06-22 08:23:43 +02:00
|
|
|
|
|
|
|
|
/**----------------------------------------------------------------*/
|
2025-12-12 13:13:07 +01:00
|
|
|
/*
|
|
|
|
|
Include all file
|
2023-06-22 08:23:43 +02:00
|
|
|
/*-----------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Load all required files.
|
2025-12-12 13:13:07 +01:00
|
|
|
*/
|
2023-06-22 08:23:43 +02:00
|
|
|
|
|
|
|
|
require __DIR__ . '/vendor/autoload.php';
|
|
|
|
|
|
2025-12-12 13:13:07 +01:00
|
|
|
require_once WMUFS_PLUGIN_PATH . 'inc/class-easymedia-loader.php';
|
2023-06-22 08:23:43 +02:00
|
|
|
|
|
|
|
|
if ( function_exists( 'wmufs_run' ) ) {
|
2025-12-12 13:13:07 +01:00
|
|
|
wmufs_run();
|
2023-06-22 08:23:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Initialize the plugin tracker
|
|
|
|
|
*
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
2025-12-12 13:13:07 +01:00
|
|
|
function appsero_init_tracker_wp_maximum_upload_file_size() {
|
2023-06-22 08:23:43 +02:00
|
|
|
|
2025-12-12 13:13:07 +01:00
|
|
|
$client = new Appsero\Client( 'a9151e1a-bc01-4c13-a117-d74263a219d7', 'WP EasyMedia', __FILE__ );
|
2023-06-22 08:23:43 +02:00
|
|
|
|
2025-12-12 13:13:07 +01:00
|
|
|
// Active insights
|
|
|
|
|
$client->insights()->init();
|
2023-06-22 08:23:43 +02:00
|
|
|
}
|
|
|
|
|
|
2025-02-28 08:42:11 +01:00
|
|
|
add_action( 'init', 'appsero_init_tracker_wp_maximum_upload_file_size' );
|