-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakewp-test.php
More file actions
47 lines (35 loc) · 1.08 KB
/
makewp-test.php
File metadata and controls
47 lines (35 loc) · 1.08 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
46
<?php
/*
Plugin Name: Makewp Test
Plugin URI: http://URI_Of_Page_Describing_Plugin_and_Updates
Description: A brief description of the Plugin.
Version: 1.0
Author: hadie
Author URI: http://URI_Of_The_Plugin_Author
License: A "Slug" license name e.g. GPL2
*/
require __FILE__ . '/makewpdev/src/Client.php';
/**
* Initialize the plugin tracker for plugin MakeWP Test
*
* @return void
*/
function makewp_init_tracker_makewp_test() {
if ( ! class_exists( 'Makewpdev\Client' ) ) {
require_once __FILE__ . '/makewpdev/src/Client.php';
}
$client = new Makewpdev\Client( 'e4b555e5-917b-47e2-9550-d02f7e9a838b', 'MakeWP Test', __FILE__ );
// Active insights
$client->insights()->init();
// Active automatic updater
$client->updater();
// Active license page and checker
$args = array(
'type' => 'options',
'menu_title' => 'MakeWP Test',
'page_title' => 'MakeWP Test Settings',
'menu_slug' => 'makewp-test_settings',
);
$client->license()->add_settings_page( $args );
}
makewp_init_tracker_makewp_test();