-
Notifications
You must be signed in to change notification settings - Fork 0
/
cbwct.php
38 lines (29 loc) · 1.34 KB
/
cbwct.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: Order Tracker for WooCommerce
Plugin URI: https://wordpress.org/plugins/wc-order-tracker/
Description: Your customer can track his/her order on your WooCommerce website easily, woocommerce order tracking system with ajax
Author: Md Abul Bashar
Version: 1.2.4
Author URI: https://facebook.com/hmbashar
Text Domain: cbwct
Requires Plugins: woocommerce
*/
// Don't call the file directly
if ( !defined( 'ABSPATH' ) ) exit;
//define URL
define('CBWCT_TRACKER_URL', plugin_dir_url( __FILE__ ));
define('CBWCT_TRACKER_PATH', plugin_dir_path(__FILE__));
//Enqueue Style for Plugin
function cbwct_basic_scripts(){
wp_enqueue_style('cbwct-animate', CBWCT_TRACKER_URL .'css/ali-animate.css');
wp_enqueue_style('cbwct-tracker-style', CBWCT_TRACKER_URL .'css/style.css');
wp_enqueue_style('cbwct-tracker-responsive', CBWCT_TRACKER_URL .'css/responsive.css');
wp_enqueue_script( 'cbwct-tracker-ajax', CBWCT_TRACKER_URL .'js/ajax-active.js', array('jquery'), 1.0, true );
wp_localize_script( 'cbwct-tracker-ajax', 'cbwct_tracker', array( 'ajaxurl' => admin_url('admin-ajax.php')) );
}
add_action('wp_enqueue_scripts','cbwct_basic_scripts');
//Include additional file
require_once( CBWCT_TRACKER_PATH . '/inc/custom.php' );
require_once( CBWCT_TRACKER_PATH . '/inc/shortcode.php' );
require_once( CBWCT_TRACKER_PATH . '/inc/hooks.php' );