-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathplugin.php
More file actions
31 lines (25 loc) · 835 Bytes
/
plugin.php
File metadata and controls
31 lines (25 loc) · 835 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
<?php
/**
* Plugin Name: Oopi
* Plugin URI: https://github.com/devgeniem/wp-oopi
* Description: Oopi is an object-oriented developer friendly WordPress importer.
* Version: 1.4.1
* Author: Geniem
* Author URI: http://www.github.com/devgeniem
* License: GPL3
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/
namespace Geniem\Oopi;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// If a custom autoloader exists, use it.
if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
require_once __DIR__ . '/vendor/autoload.php';
}
// Initialize the plugin.
Plugin::init();
// Run installation on activation hook.
\register_activation_hook( __FILE__, [ Plugin::class, 'install' ] );
// Run uninstallation on deactivation hook.
\register_deactivation_hook( __FILE__, [ Plugin::class, 'uninstall' ] );