-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheatjs.php
More file actions
35 lines (30 loc) · 1.13 KB
/
Copy pathcheatjs.php
File metadata and controls
35 lines (30 loc) · 1.13 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
<?php
/**
* Plugin Name: CheatJS
* Description: Playful keyboard easter eggs for WordPress sites.
* Version: 0.1.0
* Author: CheatJS Contributors
* License: GPL-3.0-or-later
* Text Domain: cheatjs
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
define( 'CHEATJS_VERSION', '0.1.0' );
define( 'CHEATJS_FILE', __FILE__ );
define( 'CHEATJS_DIR', plugin_dir_path( __FILE__ ) );
define( 'CHEATJS_URL', plugin_dir_url( __FILE__ ) );
require_once CHEATJS_DIR . 'includes/class-cheatjs-keys.php';
require_once CHEATJS_DIR . 'includes/class-cheatjs-presets.php';
require_once CHEATJS_DIR . 'includes/class-cheatjs-settings.php';
require_once CHEATJS_DIR . 'includes/class-cheatjs-admin.php';
require_once CHEATJS_DIR . 'includes/class-cheatjs-frontend.php';
require_once CHEATJS_DIR . 'includes/class-cheatjs-plugin.php';
$cheatjs_settings = new CheatJS_Settings();
$cheatjs_plugin = new CheatJS_Plugin(
$cheatjs_settings,
new CheatJS_Admin( $cheatjs_settings ),
new CheatJS_Frontend( $cheatjs_settings )
);
register_activation_hook( CHEATJS_FILE, [ $cheatjs_plugin, 'activate' ] );
add_action( 'plugins_loaded', [ $cheatjs_plugin, 'hooks' ] );