-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsmartpay.php
58 lines (49 loc) · 2.25 KB
/
smartpay.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
<?php
/**
* Plugin Name: SmartPay
* Description: Simplest way to sell digital downloads and fundraise with WordPress. Easily connect Paddle, Stripe, Paypal to accept donations and manage downloads.
* Plugin URI: https://wpsmartpay.com/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash
* Tags: download manager, digital product, donation, ecommerce, paddle, stripe, paypal, document manager, file manager, download protection, recurring payment, donations, donation plugin, wordpress donation plugin, wp donation, fundraising, fundraiser, crowdfunding, wordpress donations, gutenberg, gutenberg donations, nonprofit, paypal donations, paypal donate, stripe donations, stripe donate, authorize.net, authorize.net donations, bkash, bkash payment,
*
* Version: 2.7.12
* Requires PHP: 8.1
* Requires at least: 6.0
* Tested up to: 6.7
*
* Author: WPSmartPay
* Author URI: https://wpsmartpay.com/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash
* Text Domain: smartpay
* Domain Path: resources/languages
*
* @package WP SmartPay
* @category Core
*
* WP SmartPay is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* WP SmartPay is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
defined('ABSPATH') || exit;
define('SMARTPAY_VERSION', '2.7.12');
define('SMARTPAY_PLUGIN_FILE', __FILE__);
define('SMARTPAY_PLUGIN_ASSETS', plugins_url('public', __FILE__));
define('SMARTPAY_STORE_URL', 'https://wpsmartpay.com/');
// Create The Application
$app = require __DIR__ . '/bootstrap.php';
global $smartpay_options;
$smartpay_options = smartpay_get_settings();
add_action('plugins_loaded', function () use ($app) {
do_action('smartpay_loaded');
// Run The Application
$app->boot();
});
add_action('init', function () {
do_action('smartpay_init');
// Load translations
load_plugin_textdomain('smartpay', false, dirname(plugin_basename(__FILE__)) . '/resources/languages');
});