-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheforms.php
More file actions
30 lines (24 loc) · 799 Bytes
/
Copy patheforms.php
File metadata and controls
30 lines (24 loc) · 799 Bytes
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
<?php
/**
* Plugin Name: eForms
* Description: Secure, cache-aware electronic forms for WordPress.
* Version: 1.0.0
* Author: eForms Team
*/
require_once __DIR__ . '/src/Compat.php';
if ( ! defined( 'EFORMS_PLUGIN_FILE' ) ) {
define( 'EFORMS_PLUGIN_FILE', __FILE__ );
}
// Educational note: if the host platform is incompatible, fail closed by not
// registering public surfaces, and (in wp-admin) show a notice + deactivate.
if ( ! Compat::guard( __FILE__ ) ) {
return;
}
require_once __DIR__ . '/src/bootstrap.php';
if ( function_exists( 'register_activation_hook' ) ) {
register_activation_hook( __FILE__, 'eforms_activate' );
}
if ( function_exists( 'register_deactivation_hook' ) ) {
register_deactivation_hook( __FILE__, 'eforms_deactivate' );
}
eforms_bootstrap();