PluginProbe
WP-DraftsForFriends / 2.0.0
WP-DraftsForFriends v2.0.0
2.0.2 2.0.1 trunk 2.0.0
wp-draftsforfriends / wp-draftsforfriends.php

wp-draftsforfriends.php in WP-DraftsForFriends 2.0.0, at wp-draftsforfriends.php

62 lines 2.5 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-DraftsForFriends
4 * Plugin URI: https://lesterchan.net/portfolio/programming/php/
5 * Description: Now you don't need to add friends as users to the blog in order to let them preview your drafts.
6 * Version: 2.0.0
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-draftsforfriends
14 * Domain Path: /languages
15 *
16 * @package WP-DraftsForFriends
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 if ( ! defined( 'ABSPATH' ) ) {
38 exit;
39 }
40
41 /*
42 * WP_DRAFTSFORFRIENDS_DIR and WP_DRAFTSFORFRIENDS_URL are derived from __FILE__
43 * so the plugin keeps working when it is installed under a directory name other
44 * than wp-draftsforfriends. WP_DRAFTSFORFRIENDS_SLUG is the literal slug: it is
45 * the text domain and the page slug, neither of which may change because
46 * somebody unzipped the plugin into a differently named directory.
47 */
48 define( 'WP_DRAFTSFORFRIENDS_VERSION', '2.0.0' );
49 define( 'WP_DRAFTSFORFRIENDS_DB_VERSION', '1' );
50 define( 'WP_DRAFTSFORFRIENDS_SLUG', 'wp-draftsforfriends' );
51 define( 'WP_DRAFTSFORFRIENDS_MAIN_FILE', __FILE__ );
52 define( 'WP_DRAFTSFORFRIENDS_DIR', plugin_dir_path( __FILE__ ) );
53 define( 'WP_DRAFTSFORFRIENDS_URL', plugin_dir_url( __FILE__ ) );
54
55 require_once WP_DRAFTSFORFRIENDS_DIR . 'includes/class-wp-draftsforfriends-shares.php';
56 require_once WP_DRAFTSFORFRIENDS_DIR . 'includes/class-wp-draftsforfriends-options.php';
57 require_once WP_DRAFTSFORFRIENDS_DIR . 'includes/class-wp-draftsforfriends-install.php';
58 require_once WP_DRAFTSFORFRIENDS_DIR . 'includes/class-wp-draftsforfriends-preview.php';
59 require_once WP_DRAFTSFORFRIENDS_DIR . 'includes/class-wp-draftsforfriends.php';
60
61 WP_DraftsForFriends::get_instance();
62