-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhelloicms.php
More file actions
executable file
·45 lines (35 loc) · 1.05 KB
/
helloicms.php
File metadata and controls
executable file
·45 lines (35 loc) · 1.05 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
<?php
use helloicms\helloicmsPlugin;
use helloicms\FileManager;
/**
* First Plugin plugin
*
*
* @link http://premmerce.com
* @since 1.0.0
* @package helloicms
*
* @wordpress-plugin
* Plugin Name: First Plugin
* Plugin URI: http://premmerce.com
* Description: Icms plugin description
* Version: 1.0
* Author: ad@min.com
* Author URI: http://premmerce.com
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: helloicms
* Domain Path: /languages
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
call_user_func( function () {
require_once plugin_dir_path( __FILE__ ) . 'autoload.php';
$main = new helloicmsPlugin( new FileManager( __FILE__ ) );
register_activation_hook( __FILE__, [ $main, 'activate' ] );
register_deactivation_hook( __FILE__, [ $main, 'deactivate' ] );
register_uninstall_hook( __FILE__, [ helloicmsPlugin::class, 'uninstall' ] );
$main->run();
} );