-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcode-playground.php
More file actions
28 lines (26 loc) · 955 Bytes
/
code-playground.php
File metadata and controls
28 lines (26 loc) · 955 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
<?php
/**
* Plugin Name: Code Playground
* Plugin URI: https://classcube.com
* Description: Run code on your WordPress site using the ClassCube API
* Version: 0.1.2
* Requires at least: 5.2
* Requires PHP: 7.2
* Author: ClassCube
* Author URI: https://classcube.com
* License: GPL v2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: code-playground
* Domain Path: /lang
*/
$dir = plugin_dir_path( __FILE__ );
require($dir . 'inc/Settings.php');
require($dir . 'inc/User.php');
require($dir . 'inc/Admin.php');
if (!class_exists('\ClassCube\WordPress\Playground\Smashing_Updater')) {
require($dir . 'inc/Smashing_Updater.php');
}
$updater = new \ClassCube\WordPress\Playground\Smashing_Updater( __FILE__ );
$updater->set_username( 'classcube' );
$updater->set_repository( 'wordpress-code-playground' );
$updater->initialize();