-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflowmatrix.php
More file actions
59 lines (52 loc) · 1.38 KB
/
Copy pathflowmatrix.php
File metadata and controls
59 lines (52 loc) · 1.38 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
50
51
52
53
54
55
56
57
58
59
<?php
/**
* Plugin Name: FlowMatrix
* Plugin URI: https://flowmatrix.io
* Description: Enterprise-grade WordPress CRM and Marketing Automation consolidation.
* Version: 1.0.0
* Author: FlowMatrix Team
* Author URI: https://flowmatrix.io
* License: GPL-2.0+
* Text Domain: flowmatrix
* Domain Path: /languages
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
/**
* Define Constants
*/
define( 'FM_VERSION', '1.0.0' );
define( 'FM_PREFIX', 'fm_' );
define( 'FM_FILE', __FILE__ );
define( 'FM_PATH', plugin_dir_path( FM_FILE ) );
define( 'FM_DIR', FM_PATH );
define( 'FM_URL', plugin_dir_url( FM_FILE ) );
define( 'FM_BASENAME', plugin_basename( FM_FILE ) );
define( 'FM_FUNNELS_POST_TYPE', 'fm_funnels' );
define( 'FM_STEPS_POST_TYPE', 'fm_steps' );
/**
* Development Mode
* Set to true to enable Vite HMR
*/
if ( ! defined( 'FM_DEV_MODE' ) ) {
define( 'FM_DEV_MODE', false );
}
/**
* Load Required Files
*/
require_once FM_PATH . 'includes/helpers.php';
require_once FM_PATH . 'includes/class-fm-installer.php';
require_once FM_PATH . 'includes/class-fm-core.php';
/**
* Activation Logic
*/
register_activation_hook( FM_FILE, [ '\fm_\Installer', 'install' ] );
/**
* Initialize the Plugin
*/
function fm_run_flowmatrix() {
return \fm_\Core::instance();
}
fm_run_flowmatrix();