-
Notifications
You must be signed in to change notification settings - Fork 12
/
gravity-forms-zoom-webinar-registration.php
80 lines (71 loc) · 2.6 KB
/
gravity-forms-zoom-webinar-registration.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?php
/**
* Register attendees in your Zoom Webinar through a Gravity Form
*
* @package Gravity Forms Zoom Webinar Registration
* @author Michael Bourne
* @license GPL3
* @link https://5forests.com
* @since 1.0.0
*
* @wordpress-plugin
* Plugin Name: Gravity Forms Zoom Webinar Registration
* Description: Register attendees in your Zoom Webinar through a Gravity Form
* Version: 1.3.0
* Author: Michael Bourne
* Author URI: https://5forests.com
* Requires at least: 6.0
* Tested up to: 6.6.2
* Stable tag: 1.3.0
* Requires PHP: 8.0
* License: GPL3
* License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
* Text Domain: gravity-zwr
* Domain Path: /languages
*
* Created Date: Friday March 25th 2020
* Author: Michael Bourne
* -----
* Last Modified: Wednesday, October 9th 2024, 10:02:51 am
* Modified By: Michael Bourne
* -----
* Copyright (C) 2020-2024 Michael Bourne
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
if ( ! defined( 'ABSPATH' ) ) {
return;
}
defined( 'GRAVITYZWR_ROOT' ) || define( 'GRAVITYZWR_ROOT', plugin_dir_path( __FILE__ ) );
defined( 'GRAVITYZWR_URI' ) || define( 'GRAVITYZWR_URI', plugin_dir_url( __FILE__ ) );
defined( 'GRAVITYZWR_VERSION' ) || define( 'GRAVITYZWR_VERSION', '1.3.0' );
defined( 'GRAVITYZWR_ZOOMAPIURL' ) || define( 'GRAVITYZWR_ZOOMAPIURL', 'https://api.zoom.us/v2' );
add_action( 'gform_loaded', array( 'GravityZWR_Bootstrap', 'load' ), 5 );
/**
* GravityZWR_Bootstrap Class
* @var GFAddOn Gravity Forms AddOn Class
*/
class GravityZWR_Bootstrap {
public static function load() {
if ( ! method_exists( 'GFForms', 'include_feed_addon_framework' ) ) {
return;
}
// Load API Helper classes.
require_once GRAVITYZWR_ROOT . 'includes/class-gravityzwr-wordpressremote.php';
require_once GRAVITYZWR_ROOT . 'includes/class-gravityzwr-zoomapi.php';
// Load main plugin class.
require_once GRAVITYZWR_ROOT . 'includes/class-gravityzwr.php';
GFAddOn::register( 'GravityZWR' );
}
}