-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwpessential-elementor-blocks.php
55 lines (48 loc) · 1.79 KB
/
wpessential-elementor-blocks.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
<?php
if ( ! \defined( 'ABSPATH' ) )
{
exit; // Exit if accessed directly.
}
/**
* Plugin Name: WPEssential Elementor Blocks
* Description: WPEssential Elementor Blocks is a flexible extension of WordPress. It is open-source page builder solution in WordPress. Create any theme, anywhere and make your way. There is no `PHP`, `CSS`, `HTML` and `Javascript` coding knowledge need.
* Plugin URI: https://wpessential.org/plugins/wpessential/
* Author: WPEssential
* Version: 1.0
* Author URI: https://wpessential.org/
* Text Domain: wpessential-elementor-blocks
* Requires at least: 4.5
* Tested up to: 6.0
* License: GPLv3 or later
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
* Domain Path: /languages/
* WC requires at least: 6.0
* WC tested up to: 6.0
*/
require_once plugin_dir_path( __FILE__ ) . 'constants.php';
require_once WPEELB_DIR . 'vendor/autoload.php';
add_action( 'plugins_loaded', function ()
{
if ( ! did_action( 'wpessential_loaded' ) )
{
$plugin_notify = \WPEssential\Plugins\Icons\Libraries\RequiredNotifire::make( esc_html__( 'Thanks for', 'wpessential-elementor-blocks' ) );
$plugin_notify->plugin_check( 'wpessential' );
$plugin_notify->desc( esc_html__( 'Choosing the WPEssential product. The installed plugin has required the WPEssential base plugin.', 'wpessential-elementor-blocks' ) );
$plugin_notify->dismiss( true );
$plugin_notify->icon( WPEELB_URL . 'assets/images/wpessential-logo.jpg' );
}
}, 1000 );
add_action( 'wpessential_loaded', function ()
{
\WPEssential\Plugins\ElementorBlocksInit::constructor();
}, 20 );
register_activation_hook( __FILE__, function ()
{
require_once WPEELB_DIR . 'install.php';
wpeeb_install();
} );
register_deactivation_hook( __FILE__, function ()
{
require_once WPEELB_DIR . 'uninstall.php';
wpeeb_unsintall();
} );