-
Notifications
You must be signed in to change notification settings - Fork 15
/
everest-forms.php
42 lines (37 loc) · 1.03 KB
/
everest-forms.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
<?php
/**
* Plugin Name: Everest Forms
* Plugin URI: https://everestforms.net/
* Description: Drag and Drop contact form builder to easily create simple to complex forms for any purpose. Lightweight, Beautiful design, responsive and more.
* Version: 3.0.4.1
* Author: WPEverest
* Author URI: https://wpeverest.com
* Text Domain: everest-forms
* Domain Path: /languages/
*
* @package EverestForms
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
// Define EVF_PLUGIN_FILE.
if ( ! defined( 'EVF_PLUGIN_FILE' ) ) {
define( 'EVF_PLUGIN_FILE', __FILE__ );
}
// Include the main EverestForms class.
if ( ! class_exists( 'EverestForms' ) ) {
include_once dirname( __FILE__ ) . '/includes/class-everest-forms.php'; // phpcs:ignore
}
/**
* Main instance of EverestForms.
*
* Returns the main instance of EVF to prevent the need to use globals.
*
* @since 1.0.0
* @return EverestForms
*/
function evf() {
return EverestForms::instance();
}
// Global for backwards compatibility.
$GLOBALS['everest-forms'] = evf();