| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin File Upload Types. |
| 4 |
* |
| 5 |
* @since 1.0.0 |
| 6 |
* @author WPForms |
| 7 |
* @package FileUploadTypes |
| 8 |
* @license GPL-2.0+ |
| 9 |
* @copyright Copyright (c) WPForms LLC |
| 10 |
* |
| 11 |
* Plugin Name: File Upload Types by WPForms |
| 12 |
* Plugin URI: https://wpforms.com |
| 13 |
* Description: Easily allow WordPress to accept and upload any file type extension or MIME type, including custom file types. |
| 14 |
* Author: WPForms |
| 15 |
* Author URI: https://wpforms.com |
| 16 |
* License: GPL v2 or later |
| 17 |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html |
| 18 |
* Version: 1.5.0 |
| 19 |
* Requires at least: 5.5 |
| 20 |
* Requires PHP: 7.0 |
| 21 |
* Text Domain: file-upload-types |
| 22 |
* Domain Path: /languages/ |
| 23 |
*/ |
| 24 |
|
| 25 |
use FileUploadTypes\Plugin; |
| 26 |
|
| 27 |
// Exit if accessed directly. |
| 28 |
if ( ! defined( 'ABSPATH' ) ) { |
| 29 |
exit; |
| 30 |
} |
| 31 |
|
| 32 |
/** |
| 33 |
* Plugin version. |
| 34 |
* |
| 35 |
* @since {VERSION} |
| 36 |
*/ |
| 37 |
const FILE_UPLOAD_TYPES_VERSION = '1.5.0'; |
| 38 |
|
| 39 |
/** |
| 40 |
* Plugin file. |
| 41 |
* |
| 42 |
* @since 1.0.0 |
| 43 |
*/ |
| 44 |
const FILE_UPLOAD_TYPES_PLUGIN_FILE = __FILE__; |
| 45 |
|
| 46 |
/** |
| 47 |
* Plugin path. |
| 48 |
* |
| 49 |
* @since 1.0.0 |
| 50 |
*/ |
| 51 |
define( 'FILE_UPLOAD_TYPES_PLUGIN_PATH', plugin_dir_path( FILE_UPLOAD_TYPES_PLUGIN_FILE ) ); |
| 52 |
|
| 53 |
/** |
| 54 |
* Return the main instance of Plugin class. |
| 55 |
* |
| 56 |
* @since 1.0.0 |
| 57 |
* |
| 58 |
* @return Plugin |
| 59 |
*/ |
| 60 |
function file_upload_types(): Plugin { |
| 61 |
|
| 62 |
require_once __DIR__ . '/vendor/autoload.php'; |
| 63 |
|
| 64 |
return Plugin::get_instance(); |
| 65 |
} |
| 66 |
|
| 67 |
file_upload_types(); |
| 68 |
|