-
Notifications
You must be signed in to change notification settings - Fork 0
/
gf-cloud-storage.php
42 lines (30 loc) · 980 Bytes
/
gf-cloud-storage.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: Gravity Forms Cloud Storage
Plugin URI: https://expertoverflow.com
Description: A Gravity Forms feed addon to store gravity forms entries to cloud storage service providers like NextCloud.
Version: 1.0.1
Requires at least: 4.0
Requires PHP: 7.4
Author: Chris Heney
Author URI: https://chrisheney.com
Text Domain: gf_cloudstorage
------------------------------------------------------------------------
Copyright 2009-2022 Expert Overflow, LLC
*/
error_reporting(E_ALL);
ini_set('display_errors', 1);
define( 'GF_CLOUD_STORAGE_VERSION', '2.0' );
add_action( 'gform_loaded', array( 'GF_Cloud_Storage_Bootstrap', 'load' ), 5 );
class GF_Cloud_Storage_Bootstrap {
public static function load() {
if ( ! method_exists( 'GFForms', 'include_feed_addon_framework' ) ) {
return;
}
require_once( 'class-gf-cloud-storage.php' );
GFAddOn::register( 'GFCloudStorage' );
}
}
function gf_cloud_storage() {
return GFCloudStorage::get_instance();
}