-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathelementor-addon.php
46 lines (40 loc) · 1.04 KB
/
elementor-addon.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
<?php
/**
* Plugin Name: Elementor Addon
* Plugin URI: https://github.com/abkarim/elementor-addon
* Description: Elementor addon
* Version: 0.0.1
* Author: Karim
* Author URI: https://github.com/abkarim
* Text Domain: elementor-addon
*
* Elementor tested up to: 3.14.0
* Elementor Pro tested up to: x.x.x
*/
/**
* !Prevent direct access
*/
if (!defined("ABSPATH")) {
exit();
}
/**
* Checks if the function already exists or not
*
* Doesn't break site if some other plugin or theme
* is already using this function name
*
*/
if (!function_exists("elementor_addon_init")) {
function elementor_addon_init()
{
// Plugins Path
define("ELEMENTOR_ADDON_PLUGIN_PATH", plugin_dir_path(__FILE__));
// Plugins URL
define("ELEMENTOR_ADDON_PLUGIN_URL", plugin_dir_url(__FILE__));
// Load plugin file
require_once __DIR__ . "/includes/plugin.php";
// Run the plugin
\Elementor_Addon\Plugin::instance();
}
add_action("plugins_loaded", "elementor_addon_init");
}