PluginProbe
Gridable / 0.5.0
Gridable v0.5.0
1.2.12 1.2.11 trunk 0.1.0 0.5.0 1.0.0 1.1.0 1.2.0 1.2.1 1.2.10 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9
gridable / gridable.php

gridable.php in Gridable 0.5.0, at gridable.php

75 lines 2.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * The plugin bootstrap file
4 *
5 * This file is read by WordPress to generate the plugin information in the plugin
6 * admin area. This file also includes all of the dependencies used by the plugin,
7 * registers the activation and deactivation functions, and defines a function
8 * that starts the plugin.
9 *
10 * @link https://pixelgrade.com
11 * @since 1.0.0
12 * @package Gridable
13 *
14 * @wordpress-plugin
15 * Plugin Name: Gridable
16 * Plugin URI: https://pixelgrade.com/
17 * Description: The Missed Grid Content Editor
18 * Version: 0.5.0
19 * Author: Pixelgrade
20 * Author URI: https://pixelgrade.com/
21 * License: GPL-2.0+
22 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
23 * Text Domain: gridable
24 * Domain Path: /languages
25 */
26
27 // If this file is called directly, abort.
28 if ( ! defined( 'WPINC' ) ) {
29 die;
30 }
31
32 /**
33 * The code that runs during plugin activation.
34 * This action is documented in includes/class-gridable-activator.php
35 */
36 function activate_gridable() {
37 require_once plugin_dir_path( __FILE__ ) . 'includes/class-gridable-activator.php';
38 Gridable_Activator::activate();
39 }
40
41 /**
42 * The code that runs during plugin deactivation.
43 * This action is documented in includes/class-gridable-deactivator.php
44 */
45 function deactivate_gridable() {
46 require_once plugin_dir_path( __FILE__ ) . 'includes/class-gridable-deactivator.php';
47 Gridable_Deactivator::deactivate();
48 }
49
50 register_activation_hook( __FILE__, 'activate_gridable' );
51 register_deactivation_hook( __FILE__, 'deactivate_gridable' );
52
53 /**
54 * The core plugin class that is used to define internationalization,
55 * admin-specific hooks, and public-facing site hooks.
56 */
57 require plugin_dir_path( __FILE__ ) . 'includes/class-gridable.php';
58
59 /**
60 * Begins execution of the plugin.
61 *
62 * Since everything within the plugin is registered via hooks,
63 * then kicking off the plugin from this point in the file does
64 * not affect the page life cycle.
65 *
66 * @since 1.0.0
67 */
68 function run_gridable() {
69 global $gridable_plugin;
70 $gridable_plugin = new Gridable();
71 $gridable_plugin->run();
72
73 }
74 run_gridable();
75