PluginProbe
WP-DownloadManager / 2.0.1
WP-DownloadManager v2.0.1
2.0.1 2.0.0 1.68.8 1.68.9 1.69 1.69.1 1.69.2 trunk 1.00 1.30 1.31 1.40 1.50 1.61 1.62 1.63 1.64 1.65 1.66 1.67 1.68.1 1.68.10 1.68.11 1.68.2 1.68.4 All 28 releases
wp-downloadmanager / wp-downloadmanager.php

wp-downloadmanager.php in WP-DownloadManager 2.0.1, at wp-downloadmanager.php

71 lines 3.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: WP-DownloadManager
4 * Plugin URI: https://lesterchan.net/portfolio/programming/php/
5 * Description: Adds a simple download manager to your WordPress blog.
6 * Version: 2.0.1
7 * Requires at least: 6.8
8 * Requires PHP: 8.2
9 * Author: Lester 'GaMerZ' Chan
10 * Author URI: https://lesterchan.net
11 * License: GPLv2 or later
12 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
13 * Text Domain: wp-downloadmanager
14 * Domain Path: /languages
15 *
16 * @package WP-DownloadManager
17 */
18
19 /*
20 Copyright 2026 Lester Chan (email : lesterchan@gmail.com)
21
22 This program is free software; you can redistribute it and/or modify
23 it under the terms of the GNU General Public License as published by
24 the Free Software Foundation; either version 2 of the License, or
25 (at your option) any later version.
26
27 This program is distributed in the hope that it will be useful,
28 but WITHOUT ANY WARRANTY; without even the implied warranty of
29 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30 GNU General Public License for more details.
31
32 You should have received a copy of the GNU General Public License
33 along with this program; if not, write to the Free Software
34 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
35 */
36
37
38 // Exit if accessed directly.
39 defined( 'ABSPATH' ) || exit;
40
41
42 // WP_DOWNLOADMANAGER_VERSION is the last-run plugin version and
43 // WP_DOWNLOADMANAGER_DB_VERSION the schema counter; both are compared against
44 // the two keys of the wp_downloadmanager_version option row on every admin
45 // request. Bump DB_VERSION whenever the table or the shape of the settings
46 // array changes.
47 define( 'WP_DOWNLOADMANAGER_VERSION', '2.0.1' );
48 define( 'WP_DOWNLOADMANAGER_DB_VERSION', '4' );
49 define( 'WP_DOWNLOADMANAGER_SLUG', 'wp-downloadmanager' );
50 define( 'WP_DOWNLOADMANAGER_MAIN_FILE', __FILE__ );
51 define( 'WP_DOWNLOADMANAGER_DIR', plugin_dir_path( __FILE__ ) );
52 define( 'WP_DOWNLOADMANAGER_URL', plugin_dir_url( __FILE__ ) );
53
54 // Classes. Required at file load because the activation hook and the option
55 // accessor are both reached before any action fires.
56 require_once WP_DOWNLOADMANAGER_DIR . 'includes/class-wp-downloadmanager-template.php';
57 require_once WP_DOWNLOADMANAGER_DIR . 'includes/class-wp-downloadmanager-options.php';
58 require_once WP_DOWNLOADMANAGER_DIR . 'includes/class-wp-downloadmanager-download.php';
59 require_once WP_DOWNLOADMANAGER_DIR . 'includes/class-wp-downloadmanager-file.php';
60 require_once WP_DOWNLOADMANAGER_DIR . 'includes/class-wp-downloadmanager-display.php';
61 require_once WP_DOWNLOADMANAGER_DIR . 'includes/class-wp-downloadmanager-blocks.php';
62 require_once WP_DOWNLOADMANAGER_DIR . 'includes/class-wp-downloadmanager-install.php';
63 require_once WP_DOWNLOADMANAGER_DIR . 'includes/class-wp-downloadmanager-settings.php';
64 require_once WP_DOWNLOADMANAGER_DIR . 'includes/class-wp-downloadmanager-widget.php';
65 require_once WP_DOWNLOADMANAGER_DIR . 'includes/class-wp-downloadmanager-wpstats.php';
66 require_once WP_DOWNLOADMANAGER_DIR . 'includes/class-wp-downloadmanager-admin.php';
67 require_once WP_DOWNLOADMANAGER_DIR . 'includes/class-wp-downloadmanager.php';
68 require_once WP_DOWNLOADMANAGER_DIR . 'includes/template-tags.php';
69
70 WP_DownloadManager::init();
71