kollapsminoriteten/wp-content/plugins/wp-maximum-upload-file-size/wp-maximum-upload-file-size...

56 lines
1.6 KiB
PHP

<?php
/**
* 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' );
/**----------------------------------------------------------------*/
/*
Include all file
/*-----------------------------------------------------------------*/
/**
* Load all required files.
*/
require __DIR__ . '/vendor/autoload.php';
require_once WMUFS_PLUGIN_PATH . 'inc/class-easymedia-loader.php';
if ( function_exists( 'wmufs_run' ) ) {
wmufs_run();
}
/**
* Initialize the plugin tracker
*
* @return void
*/
function appsero_init_tracker_wp_maximum_upload_file_size() {
$client = new Appsero\Client( 'a9151e1a-bc01-4c13-a117-d74263a219d7', 'WP EasyMedia', __FILE__ );
// Active insights
$client->insights()->init();
}
add_action( 'init', 'appsero_init_tracker_wp_maximum_upload_file_size' );