-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwpessential-forms-expert.php
More file actions
43 lines (37 loc) · 1.44 KB
/
wpessential-forms-expert.php
File metadata and controls
43 lines (37 loc) · 1.44 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
<?php
/**
* Plugin Name: WPEssential Forms Expert
* Description: WPEssential Forms Expert.
* Plugin URI: https://wp.wpessential.org/plugins/wpessential/forms-export
* Author: WPEssential
* Version: 1.0.0
* Author URI: https://wpessential.org/
* Text Domain: wpessential-forms-expert
* Requires PHP: 7.4
* Requires at least: 5.0
* License: GPLv3
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
* Domain Path: /languages/
*/
require_once plugin_dir_path( __FILE__ ) . 'constants.php';
require_once WPEFE_DIR . 'vendor/autoload.php';
add_action( 'plugins_loaded', function () {
if ( ! did_action( 'wpessential_loaded' ) ) {
$plugin_notify = \WPEssential\Plugins\Icons\Libraries\RequiredNotifire::make( __( 'Thanks for', 'wpessential-forms-export' ) );
$plugin_notify->plugin_check( 'wpessential' );
$plugin_notify->desc( __( 'Choosing the WPEssential product. The installed plugin has required the WPEssential base plugin.', 'wpessential-forms-export' ) );
$plugin_notify->dismiss( true );
$plugin_notify->icon( WPEOEW_URL . 'assets/images/wpessential-logo.jpg' );
}
}, 1000 );
add_action( 'wpessential_loaded', function () {
\WPEssential\Plugins\FormsExpertInit::constructor();
}, 20 );
register_activation_hook( __FILE__, function () {
require_once WPEFE_DIR . 'install.php';
wpe_subsciber_install();
} );
register_deactivation_hook( __FILE__, function () {
require_once WPEFE_DIR . 'uninstall.php';
wpe_subsciber_unsintall();
} );