-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroughest.php
36 lines (31 loc) · 1018 Bytes
/
roughest.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: Instant Estimate Calculator
Plugin URI: https://inlandapp.com/custom-plugins/roughest
Description: RoughEst Instant Estimate Calculator allows website visitors to easily and instantly calculate a rough price range estimate for your services.
Version: 1.0
Author: Inland Applications
Author URI: https://inlandapp.com
License: GPLv2
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rough-estimate-calculator
*/
// Exit if accessed directly
if(!defined('ABSPATH')){
exit;
}
// Load Scripts
require_once(plugin_dir_path(__FILE__).'/includes/roughest-scripts.php');
// Load Class
require_once(plugin_dir_path(__FILE__).'/includes/roughest-class.php');
// Register Widget
function register_roughest_sqft(){
register_widget('RoughEst_Sqft_Widget');
}
// Register Widget
function register_roughest_run(){
register_widget('RoughEst_Run_Widget');
}
// Hook in function
add_action('widgets_init', 'register_roughest_sqft');
add_action('widgets_init', 'register_roughest_run');