-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooconvert.php
63 lines (51 loc) · 2.08 KB
/
fooconvert.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
56
57
58
59
60
61
62
63
<?php
/*
Plugin Name: FooConvert - Boost Conversions & Lead Generation
Description: Turn clicks into conversions, visitors into customers – FooConvert is the ultimate catalyst for online success!
Version: 1.0.0
Author: FooPlugins
Plugin URI: https://fooplugins.com/fooconvert/
Author URI: https://fooplugins.com/
Text Domain: fooconvert
License: GPL-3.0+
Domain Path: /languages
Requires at least: 6.5
Requires PHP: 7.4
@fs_premium_only /pro/
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
// Define some FooConvert essentials constants.
if ( ! defined( 'FOOCONVERT_SLUG' ) ) {
define( 'FOOCONVERT_SLUG', 'fooconvert' );
define( 'FOOCONVERT_NAME', 'FooConvert' );
define( 'FOOCONVERT_NAMESPACE', 'FooPlugins\FooConvert' );
define( 'FOOCONVERT_DIR', __DIR__ );
define( 'FOOCONVERT_PATH', plugin_dir_path( __FILE__ ) );
define( 'FOOCONVERT_URL', plugin_dir_url( __FILE__ ) );
define( 'FOOCONVERT_INCLUDES_PATH', FOOCONVERT_PATH . 'includes/' );
define( 'FOOCONVERT_INCLUDES_URL', FOOCONVERT_URL . 'includes/' );
define( 'FOOCONVERT_ASSETS_PATH', FOOCONVERT_PATH . 'assets/' );
define( 'FOOCONVERT_ASSETS_URL', FOOCONVERT_URL . 'assets/' );
define( 'FOOCONVERT_FILE', __FILE__ );
define( 'FOOCONVERT_VERSION', '1.0.0' );
define( 'FOOCONVERT_MIN_PHP', '7.4.0' );
define( 'FOOCONVERT_MIN_WP', '6.5.0' );
}
// Include other essential FooConvert constants.
require_once FOOCONVERT_INCLUDES_PATH . 'constants.php';
// Start autoloader.
require_once FOOCONVERT_PATH . 'vendor/autoload.php';
// Init Freemius.
require_once FOOCONVERT_INCLUDES_PATH . 'freemius.php';
// Check minimum requirements before loading the plugin.
if ( require_once FOOCONVERT_INCLUDES_PATH . 'startup-checks.php' ) {
require_once FOOCONVERT_INCLUDES_PATH . 'functions.php';
spl_autoload_register( 'fooconvert_autoloader' );
// Hook in activation.
register_activation_hook( FOOCONVERT_FILE, array( FooPlugins\FooConvert\FooConvert::class, 'activated' ) );
// Start the plugin!
FooPlugins\FooConvert\FooConvert::plugin();
}