-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfaveo-agora-billing.php
More file actions
33 lines (27 loc) · 1.05 KB
/
faveo-agora-billing.php
File metadata and controls
33 lines (27 loc) · 1.05 KB
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
<?php
/**
* Plugin Name: Faveo Invoicing
* Description: This plugin pulls product pricing, Description/Details, currency, and order URL from the Faveo invoicing web application.
* Version: 1.4.8
* Author: Ladybird Web Solution Pvt Ltd
* License: GPLv2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
* Icon: /wp-content/plugins/faveo-agora-invoicing/assets/plugin-icon.png
*/
if (!defined('ABSPATH')) {
exit;
}
// Plugin directory paths
define('FHAI_DIR', plugin_dir_path(__FILE__));
define('FHAI_URL', plugin_dir_url(__FILE__));
// Include Files
require_once FHAI_DIR . 'includes/admin-settings.php';
require_once FHAI_DIR . 'includes/faveo-pricing-functions.php';
// Styles and scripts
add_action('wp_enqueue_scripts', 'fhai_data_enqueue_scripts');
function fhai_data_enqueue_scripts() {
wp_enqueue_style('api-data-style', FHAI_URL . 'css/style.css', array(), '1.0');
wp_enqueue_script('api-data-script', FHAI_URL . 'js/faveo-pricing-script.js', array('jquery'), '1.0', true);
}
// Shortcode
add_shortcode('fhai', 'fhai_calling');