-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdummy-plugin.php
More file actions
49 lines (41 loc) · 1.92 KB
/
dummy-plugin.php
File metadata and controls
49 lines (41 loc) · 1.92 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
47
48
49
<?php
/*
Plugin Name: Dummy Plugin
Plugin URI: https://themewizz.com/
Description: Empty plugin to demonstrate the TWZ Update Server.
Version: 1.5.17
Author: Steven Wagner
Author URI: https://themewizz.com/
Icon1x: https://raw.githubusercontent.com/ThemeWizz/images/main/icon-128x128.png
Icon2x: https://raw.githubusercontent.com/ThemeWizz/images/main/icon-256x256.png
BannerLow: https://raw.githubusercontent.com/ThemeWizz/images/main/banner-772x250.png
BannerHigh: https://raw.githubusercontent.com/ThemeWizz/images/main/banner-1544x500.png
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
/* ================================================================================================ */
/* WP Packages Update Server */
/* ================================================================================================ */
/**
* Uncomment the section below to enable updates with WP Packages Update Server.
*
* WARNING - READ FIRST:
*
* Before deploying the plugin or theme, make sure to change the following values in wppus.json:
* - server => The URL of the server where WP Packages Update Server is installed ; required
* - requireLicense => Whether the package requires a license ; true or false ; optional
*
* Also change $prefix_updater below - replace "prefix" in this variable's name with a unique prefix
*
**/
/** Enable updates **/
/* phpcs:ignore Squiz.PHP.CommentedOutCode.Found */
require_once __DIR__ . '/lib/wp-package-updater/class-wp-package-updater.php';
$prefix_updater = new WP_Package_Updater(
wp_normalize_path( __FILE__ ),
0 === strpos( __DIR__, WP_PLUGIN_DIR ) ? wp_normalize_path( __DIR__ ) : get_stylesheet_directory()
);
/* ================================================================================================ */
function dummy_plugin_run() {}
add_action( 'plugins_loaded', 'dummy_plugin_run', 10, 0 );