-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheasy-file-uploader.php
More file actions
49 lines (44 loc) · 1.74 KB
/
easy-file-uploader.php
File metadata and controls
49 lines (44 loc) · 1.74 KB
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
<?php
/**
* Plugin Name: Easy DragDrop File Uploader
* Plugin URI: https://ziorweb.dev/plugin/easy-dragdrop-file-uploader
* Description: Enhances Elementor Pro Forms and Contact Form 7 with a drag and drop uploader for seamless file uploads.
* Author: ZIORWeb.Dev
* Author URI: https://ziorweb.dev
* Version: 1.1.9
* Requires at least: 6.0
* Requires PHP: 8.0
* License: GPL-2.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: easy-file-uploader
* Domain Path: /languages
* Tested up to: 6.9
*
* @package ZIORWebDev\DragDrop
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/gpl-2.0.txt>.
*/
use ZIORWebDev\DragDrop\Plugin;
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Autoload vendor and project classes.
require_once plugin_dir_path( __FILE__ ) . 'vendor/autoload.php';
// Initialize the plugin.
$plugin_instance = new Plugin( __FILE__ );
$plugin_instance->init();
// Activation and deactivation hooks.
register_activation_hook( __FILE__, array( $plugin_instance, 'activate_plugin' ) );
register_deactivation_hook( __FILE__, array( $plugin_instance, 'deactivate_plugin' ) );