-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwp-layouts.php
More file actions
70 lines (58 loc) · 1.79 KB
/
wp-layouts.php
File metadata and controls
70 lines (58 loc) · 1.79 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
<?php
/**
* Plugin Name: WordPress Layouts
* Plugin URI: http://crativeg.gr
* Description: Create a Library of Layouts and Import between your Installations
* Version: 1.0.1
* Author: Basilis Kanonidis
* Author URI: http://creativeg.gr
* License: GPL-2.0+
* Text Domain: wp-layouts
* Domain Path: /languages
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
require_once 'includes/definitions.php';
require_once WP_LAYOUTS_INCLUDES . '/functions.php';
require_once WP_LAYOUTS_INCLUDES . '/code-layouts-cpt.php';
/**
* Need for WP version < 4.4.0.
*/
if( ! defined( 'REST_API_VERSION' ) ) {
require_once WP_LAYOUTS_INCLUDES . '/api.php';
}
/**
* The code that runs during plugin activation.
* This action is documented in includes/classes/class-wp-layouts-activator.php
*/
function activate_wp_layout() {
require_once WP_LAYOUTS_INCLUDES . '/classes/class-wp-layouts-activator.php';
WP_Layouts_Activator::activate();
}
/**
* The code that runs during plugin deactivation.
* This action is documented in includes/classes/class-wp-layouts-deactivator.php
*/
function deactivate_wp_layout() {
require_once WP_LAYOUTS_INCLUDES . '/classes/class-wp-layouts-deactivator.php';
WP_Layouts_Deactivator::deactivate();
}
register_activation_hook( __FILE__, 'activate_wp_layout' );
register_deactivation_hook( __FILE__, 'deactivate_wp_layout' );
/**
* The core plugin class that is used to define internationalization,
* admin-specific hooks, and public-facing site hooks.
*/
require WP_LAYOUTS_INCLUDES . '/classes/class-wp-layouts.php';
/**
* Begins execution of the plugin.
*
* @since 1.0.0
*/
function run_wp_layouts() {
$plugin = new WP_Layouts();
$plugin->run();
}
run_wp_layouts();