-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathwoocommerce-esewa.php
More file actions
31 lines (27 loc) · 859 Bytes
/
woocommerce-esewa.php
File metadata and controls
31 lines (27 loc) · 859 Bytes
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
<?php
/**
* Plugin Name: WooCommerce eSewa
* Plugin URI: https://github.com/shivapoudel/woocommerce-esewa
* Description: WooCommerce eSewa is a Nepali payment gateway for WooCommerce.
* Version: 2.0.0
* Author: Shiva Poudel
* Author URI: https://shivapoudel.com
* Text Domain: woocommerce-esewa
* Domain Path: /languages
*
* WC requires at least: 3.6.0
* WC tested up to: 4.3.0
*
* @package WooCommerce_eSewa
*/
defined( 'ABSPATH' ) || exit;
// Define WC_ESEWA_PLUGIN_FILE.
if ( ! defined( 'WC_ESEWA_PLUGIN_FILE' ) ) {
define( 'WC_ESEWA_PLUGIN_FILE', __FILE__ );
}
// Include the main WooCommerce eSewa class.
if ( ! class_exists( 'WooCommerce_eSewa' ) ) {
include_once dirname( __FILE__ ) . '/includes/class-woocommerce-esewa.php';
}
// Initialize the plugin.
add_action( 'plugins_loaded', array( 'WooCommerce_eSewa', 'get_instance' ) );