-
Notifications
You must be signed in to change notification settings - Fork 0
/
getwid.php
44 lines (37 loc) · 1.15 KB
/
getwid.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
<?php
/**
* Plugin Name: Getwid
* Plugin URI: https://motopress.com/products/getwid/
* Description: Extra Gutenberg blocks for building seamless and aesthetic websites in the WordPress block editor.
* Version: 2.0.9
* Author: MotoPress
* Author URI: https://motopress.com/
* License: GPLv2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: getwid
* Domain Path: /languages
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( !class_exists( 'Getwid\Getwid' ) ) {
if ( ! defined( 'GETWID_PLUGIN_FILE' ) ) {
define( 'GETWID_PLUGIN_FILE', __FILE__ );
}
if ( ! defined( 'GETWID_PLUGIN_DIR' ) ) {
define( 'GETWID_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); // The path with trailing slash
}
if ( ! defined( 'GETWID_PLUGIN_BASENAME' ) ) {
define( 'GETWID_PLUGIN_BASENAME', plugin_basename( GETWID_PLUGIN_FILE ) );
}
if ( ! defined( 'GETWID_DEBUG' ) ) {
define( 'GETWID_DEBUG', false );
}
include_once GETWID_PLUGIN_DIR . 'includes/getwid.php';
function getwid() {
return \Getwid\Getwid::getInstance();
}
// Init Getwid
getwid();
}