-
Notifications
You must be signed in to change notification settings - Fork 0
/
brasa-request-a-quote.php
executable file
·53 lines (47 loc) · 1.88 KB
/
brasa-request-a-quote.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
<?php
/**
*
*
* @package brasa-request-a-quote
* @author Brasa Design <[email protected]>
* @license GPL-2.0+
* @link http://brasa.art.br
* @copyright Brasa Design - 2016
*
* @wordpress-plugin
* Plugin Name: Brasa Request a Quote
* Plugin URI: http://brasa.art.br
* Description: Another Request a Quote WooCommerce plugin
* Version: 0.1
* Author: Brasa Design
* Author URI: http://brasa.art.br
* Text Domain: brasa-request-a-quote
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Domain Path: /languages
* GitHub Plugin URI: https://github.com/brasadesign/brasa-request-a-quote
*/
// define plugin directory location
define( 'BRASA_REQUEST_A_QUOTE_DIR', plugin_dir_path( __FILE__ ) );
define( 'BRASA_REQUEST_A_QUOTE_URL', plugin_dir_url( __FILE__ ) );
/**
* Register text domain
*/
function brasa_request_a_quote_textdomain() {
$locale = get_locale();
load_textdomain( 'brasa-request-a-quote', BRASA_REQUEST_A_QUOTE_DIR . 'languages/brasa-request-a-quote-' . $locale . '.mo' );
load_plugin_textdomain( 'brasa-request-a-quote', false, plugin_basename( dirname( __FILE__ ) ) . '/languages' );
}
add_action( 'plugins_loaded', 'brasa_request_a_quote_textdomain' );
// include metabox class
require_once BRASA_REQUEST_A_QUOTE_DIR . 'inc/metabox-class.php';
// include metaboxes options
require_once BRASA_REQUEST_A_QUOTE_DIR . 'inc/metabox-options.php';
// include settings api class
require_once BRASA_REQUEST_A_QUOTE_DIR . 'inc/settings-class.php';
// include settings api options
require_once BRASA_REQUEST_A_QUOTE_DIR . 'inc/settings-options.php';
// include Request a Quote Class
require_once BRASA_REQUEST_A_QUOTE_DIR . 'inc/request-a-quote-class.php';
// include Request a Quote Email Class
require_once BRASA_REQUEST_A_QUOTE_DIR . 'inc/request-a-quote-emails-class.php';