-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathowc-gravityforms-zgw.php
More file actions
73 lines (64 loc) · 2.5 KB
/
owc-gravityforms-zgw.php
File metadata and controls
73 lines (64 loc) · 2.5 KB
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
<?php
/**
* OWC GravityForms ZGW.
*
* @package OWC_GravityForms_ZGW
* @author Yard | Digital Agency
* @since 1.0.0
*
* Plugin Name: OWC | GravityForms ZGW
* Plugin URI: https://github.com/OpenWebconcept/plugin-owc-gravityforms-zgw
* Description: Koppelt GravityForms met ZGW.
* Version: 1.9.4
* Author: Yard | Digital Agency
* Author URI: https://www.yard.nl
* License: EUPL
* License URI: https://github.com/OpenWebconcept/plugin-owc-gravityforms-zgw/LICENSE.txt
* Text Domain: owc-gravityforms-zgw
* Domain Path: /languages
* Requires Plugins: action-scheduler, gravityforms, cmb2
*/
declare (strict_types = 1);
/**
* Exit when accessed directly.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
const OWC_GRAVITYFORMS_ZGW_VERSION = '1.9.4';
const OWC_GRAVITYFORMS_ZGW_REQUIRED_WP_VERSION = '6.7';
const OWC_GRAVITYFORMS_ZGW_FILE = __FILE__;
define( 'OWC_GRAVITYFORMS_ZGW_DIR_PATH', plugin_dir_path( OWC_GRAVITYFORMS_ZGW_FILE ) );
define( 'OWC_GRAVITYFORMS_ZGW_PLUGIN_URL', plugins_url( '/', OWC_GRAVITYFORMS_ZGW_FILE ) );
const OWC_GRAVITYFORMS_ZGW_SETTINGS_PREFIX = 'owc-gf-zgw';
const OWC_GRAVITYFORMS_ZGW_ADD_ON_SETTINGS_PREFIX = 'owc-gf-zgw-add-on';
const OWC_GRAVITYFORMS_ZGW_PLUGIN_SLUG = 'owc-gravityforms-zgw';
const OWC_GRAVITYFORMS_ZGW_LOGGER_DEFAULT_MAX_FILES = 7;
const OWC_GRAVITYFORMS_ZGW_SITE_OPTION_NAME = 'owc_gf_zgw_options';
const OWC_GRAVITYFORMS_ZGW_ACTION_SCHEDULER_HOOK_ZAAK = 'owc_gf_zgw_process_zaak_creation';
const OWC_GRAVITYFORMS_ZGW_ACTION_SCHEDULER_HOOK_TRANSACTION = 'owc_gf_zgw_process_transaction';
const OWC_GRAVITYFORMS_ZGW_ACTION_SCHEDULER_GROUP = 'owc-gravityforms-zgw';
const OWC_GRAVITYFORMS_ZGW_PLUGIN_NAME = 'OWC GravityForms ZGW';
// Require autoload if they exist.
foreach ( array( 'vendor/autoload.php', 'vendor-prefixed/autoload.php' ) as $autoload ) {
$path = __DIR__ . '/' . $autoload;
if ( file_exists( $path ) ) {
require_once $path;
}
}
require_once __DIR__ . '/src/autoload.php';
require_once __DIR__ . '/src/Bootstrap.php';
// Clear scheduled events on plugin deactivation.
register_deactivation_hook(
__FILE__,
function () {
wp_clear_scheduled_hook( 'owc_zgw_transaction_report' );
wp_clear_scheduled_hook( 'owc_zgw_transaction_cleaner' );
}
);
add_action(
'after_setup_theme',
function () {
$init = new OWCGravityFormsZGW\Bootstrap();
}
);