-
Notifications
You must be signed in to change notification settings - Fork 0
/
freemius-checkout.php
52 lines (43 loc) · 1.21 KB
/
freemius-checkout.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
<?php
/**
* Freemius Checkout
*
* @wordpress-plugin
* Plugin Name: Freemius Checkout
* Plugin URI: https://cmoreira.net/
* Description: Set selectors to trigger the freemius checkout iframe
* Version: 1.0.7
* Author: Carlos Moreira
* Author URI: https://cmoreira.net
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: freemius-checkout
* Domain Path: /languages
*/
namespace Saltus\WP\Plugin\Saltus\FreemiusCheckout;
// If this file is called directly, quit.
if ( ! defined( 'WPINC' ) ) {
exit;
}
if ( file_exists( dirname( __FILE__ ) . '/vendor/autoload.php' ) ) {
require_once dirname( __FILE__ ) . '/vendor/autoload.php';
}
if ( class_exists( \Saltus\WP\Framework\Core::class ) ) {
/*
* The path to the plugin root directory is mandatory,
* so it loads the models from a subdirectory.
*/
$framework = new \Saltus\WP\Framework\Core( dirname( __FILE__ ) );
$framework->register();
/**
* Initialize plugin
*
*/
add_action(
'plugins_loaded',
function () use ( $framework ) {
$plugin = new Core( 'saltus-framework', '1.0.7', __FILE__, $framework );
$plugin->init();
}
);
}