forked from digamber89/woo-preview-emails
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwoocommerce-preview-emails.php
36 lines (31 loc) · 1.09 KB
/
woocommerce-preview-emails.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
<?php
/*
Plugin Name: Woo Preview Emails
Description: An Extension for WooCommerce that lets you Preview Emails, without having to send them.
Plugin URI: http://www.digamberpradhan.com.np/woocommerce-preview-e-mails/
Author: Digamber Pradhan
Author URI: http://digamberpradhan.com.np/
Version: 1.2.8
License: http://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html
Text Domain: woo-preview-emails
Domain Path: /languages
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
if( !defined('WOO_PREVIEW_EMAILS_DIR') ){
define('WOO_PREVIEW_EMAILS_DIR', dirname(__FILE__));
}
if( !defined('WOO_PREVIEW_EMAILS_FILE') ){
define('WOO_PREVIEW_EMAILS_FILE', __FILE__);
}
if( !function_exists('is_woocommerce_active') ){
require_once('includes/woo-functions.php');
}
if( is_woocommerce_active() ){
require_once('classes/class-woocommerce-preview-emails.php');
}
function woo_preview_emails_load_text_domain() {
load_plugin_textdomain( 'woo-preview-emails', FALSE, plugin_basename( dirname( __FILE__ ) ) . '/languages/' );
}
add_action( 'plugins_loaded', 'woo_preview_emails_load_text_domain' );