-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeveltio-forms.php
More file actions
49 lines (43 loc) · 1.15 KB
/
develtio-forms.php
File metadata and controls
49 lines (43 loc) · 1.15 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
<?php
/**
* Develtio Forms
*
* Plugin Name: Develtio Forms
* Plugin URI: https://develtio.com
* Description: Make forms easier to develop
* Version: 1.0
* Author: Develtio
* Author URI: https://develtio.com
* License: GPLv2 or later
* License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* Text Domain: develtio-forms
* Domain Path: /lang
*/
// Abort if this file is called directly
defined( 'ABSPATH' ) or die( 'Hey, what are you doing here?' );
// Composer autoloader
if ( is_readable( __DIR__ . '/vendor/autoload.php' ) ) {
require_once __DIR__ . '/vendor/autoload.php';
}
/**
* Plugin activation function
*/
function activate_develtio_plugin()
{
\Develtio\WP\Forms\Core\Base\Activate::activate();
}
register_activation_hook( __FILE__, 'activate_develtio_plugin' );
/**
* Plugin deactivation function
*/
function deactivate_develtio_plugin()
{
\Develtio\WP\Forms\Core\Base\Deactivate::deactivate();
}
register_deactivation_hook( __FILE__, 'deactivate_develtio_plugin' );
/**
* Init all core classes
*/
if ( class_exists( 'Develtio\\WP\\Forms\\Init' ) ) {
\Develtio\WP\Forms\Init::register_services();
}