2023-06-22 08:23:43 +02:00
|
|
|
<?php
|
|
|
|
|
/**
|
2025-02-28 08:42:11 +01:00
|
|
|
* Plugin Name: MaxUploader - Increase Media Upload Size
|
2025-06-09 09:58:01 +02:00
|
|
|
* Description: Wp Maximum Upload File Size will increase upload limit with one click. You can increase the upload file size according to your need.
|
2023-06-22 08:23:43 +02:00
|
|
|
* Author: CodePopular
|
|
|
|
|
* Author URI: https://codepopular.com
|
|
|
|
|
* Plugin URI: https://wordpress.org/plugins/wp-maximum-upload-file-size/
|
2025-06-09 09:58:01 +02:00
|
|
|
* Version: 2.0.2
|
2023-06-22 08:23:43 +02:00
|
|
|
* License: GPL2
|
|
|
|
|
* Text Domain: wp-maximum-upload-file-size
|
|
|
|
|
* Requires at least: 4.0
|
2025-06-09 09:58:01 +02:00
|
|
|
* Tested up to: 6.8
|
|
|
|
|
* Requires PHP: 7.0
|
|
|
|
|
* @coypright: -2025 CodePopular (support: info@codepopular.com)
|
|
|
|
|
**/
|
2023-06-22 08:23:43 +02:00
|
|
|
|
|
|
|
|
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__)));
|
2025-06-09 09:58:01 +02:00
|
|
|
define('WMUFS_PLUGIN_VERSION', '2.0.2');
|
2023-06-22 08:23:43 +02:00
|
|
|
|
|
|
|
|
/**----------------------------------------------------------------*/
|
|
|
|
|
/* Include all file
|
|
|
|
|
/*-----------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Load all required files.
|
2025-06-09 09:58:01 +02:00
|
|
|
**/
|
2023-06-22 08:23:43 +02:00
|
|
|
|
|
|
|
|
require __DIR__ . '/vendor/autoload.php';
|
|
|
|
|
|
2025-06-09 09:58:01 +02:00
|
|
|
include_once( WMUFS_PLUGIN_PATH . 'inc/class-maxUploader-loader.php' );
|
2023-06-22 08:23:43 +02:00
|
|
|
|
|
|
|
|
if ( function_exists( 'wmufs_run' ) ) {
|
|
|
|
|
wmufs_run();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Initialize the plugin tracker
|
|
|
|
|
*
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
2025-06-09 09:58:01 +02:00
|
|
|
function appsero_init_tracker_wp_maximum_upload_file_size(): void {
|
2023-06-22 08:23:43 +02:00
|
|
|
|
|
|
|
|
$client = new Appsero\Client( 'a9151e1a-bc01-4c13-a117-d74263a219d7', 'WP Increase Upload Filesize | Increase Maximum Execution Time', __FILE__ );
|
|
|
|
|
|
|
|
|
|
// Active insights
|
|
|
|
|
$client->insights()->init();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
2025-02-28 08:42:11 +01:00
|
|
|
add_action( 'init', 'appsero_init_tracker_wp_maximum_upload_file_size' );
|