-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgf-code-chest.php
46 lines (38 loc) · 1.18 KB
/
gf-code-chest.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
<?php
/**
* Plugin Name: Gravity Forms Code Chest
* Description: Pair the magic of Code Chest's robust models with Gravity Forms' flexibility.
* Plugin URI: https://gravitywiz.com/gf-code-chest/
* Version: 1.0.6
* Author: Gravity Wiz
* Author URI: https://gravitywiz.com/
* License: GPL2
* Text Domain: gf-code-chest
* Domain Path: /languages
*
* @package gf-code-chest
* @copyright Copyright (c) 2022, Gravity Wiz, LLC
* @author Gravity Wiz <[email protected]>
* @license GPLv2
* @link https://github.com/gravitywiz/gf-code-chest
*/
define( 'GWIZ_GF_CODE_CHEST_VERSION', '1.0.6' );
defined( 'ABSPATH' ) || die();
require plugin_dir_path( __FILE__ ) . 'vendor/autoload_packages.php';
add_action( 'gform_loaded', function() {
if ( ! method_exists( 'GFForms', 'include_feed_addon_framework' ) ) {
return;
}
require plugin_dir_path( __FILE__ ) . 'class-gwiz-gf-code-chest.php';
GFAddOn::register( 'GWiz_GF_Code_Chest' );
}, 0 ); // Load before Gravity Flow
/**
* Returns an instance of the GWiz_GF_Code_Chest class
*
* @see GWiz_GF_Code_Chest::get_instance()
*
* @return GWiz_GF_Code_Chest
*/
function gwiz_gf_code_chest() {
return GWiz_GF_Code_Chest::get_instance();
}