-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmagic-forms.php
More file actions
43 lines (38 loc) · 913 Bytes
/
magic-forms.php
File metadata and controls
43 lines (38 loc) · 913 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
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/**
* Magic Forms
*
* @package Magic-Forms
* @license GPL-2.0+
*
* @wordpress-plugin
* Plugin Name: Magic Forms
* Plugin URI:
* Description: Form post request handler, templates and other functionality for forms.
* Version: 0.0.1
* Author: Jascha Ehrenreich
* Author URI: http://github.com/wp-magic/magic-forms
* Text Domain: magic_forms
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Domain Path: /languages
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
define( 'MAGIC_FORMS_SLUG', 'magic_forms' );
require_once plugin_dir_path( __FILE__ ) . 'includes/plugin.php';
// Register callback that is fired when the plugin is activated.
register_activation_hook(
__FILE__,
function () {
flush_rewrite_rules();
}
);
register_deactivation_hook(
__FILE__,
function () {
flush_rewrite_rules();
}
);