-
Notifications
You must be signed in to change notification settings - Fork 0
/
billplz-for-cf7.php
37 lines (30 loc) · 1.09 KB
/
billplz-for-cf7.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
<?php
/**
* Plugin Name: Billplz for Contact Form 7
* Plugin URI: https://github.com/alvindcaesar/billplz-for-cf7
* Description: Accept payment in Contact Form 7 by using Billplz
* Author: Alvind Caesar
* Author URI: https://alvindcaesar.com
* Text Domain: billplz-for-cf7
* Domain Path: /languages
* Version: 1.2.0
*
* @package Billplz_For_CF7
*/
defined("WPINC") or die;
if (file_exists( dirname(__FILE__) . '/vendor/autoload.php' ) ) {
require_once dirname(__FILE__) . '/vendor/autoload.php';
}
define("BCF7_PLUGIN_PATH", plugin_dir_path(__FILE__));
define("BCF7_PLUGIN_URL", plugin_dir_url(__FILE__));
define("BCF7_PLUGIN_FILE", plugin_basename(__FILE__));
define("BCF7_ASSETS_URL", plugins_url('/billplz-for-contact-form-7/assets/'));
define("BCF7_TEXT_DOMAIN", "billplz-for-cf7");
define("BCF7_PLUGIN_VERSION", "1.2.0");
if (class_exists('BillplzCF7\\Init')) {
BillplzCF7\Init::register_services();
}
function bcf7_activation() {
( new \BillplzCF7\Base\Activate() )->activate();
}
register_activation_hook( __FILE__, 'bcf7_activation' );