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