| 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.2 |
| 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 |
defined( 'ABSPATH' ) || exit; |
| 38 |
|
| 39 |
/* |
| 40 |
* WP_DRAFTSFORFRIENDS_DIR and WP_DRAFTSFORFRIENDS_URL are derived from __FILE__ |
| 41 |
* so the plugin keeps working when it is installed under a directory name other |
| 42 |
* than wp-draftsforfriends. WP_DRAFTSFORFRIENDS_SLUG is the literal slug: it is |
| 43 |
* the text domain and the page slug, neither of which may change because |
| 44 |
* somebody unzipped the plugin into a differently named directory. |
| 45 |
*/ |
| 46 |
define( 'WP_DRAFTSFORFRIENDS_VERSION', '2.0.2' ); |
| 47 |
define( 'WP_DRAFTSFORFRIENDS_DB_VERSION', '1' ); |
| 48 |
define( 'WP_DRAFTSFORFRIENDS_SLUG', 'wp-draftsforfriends' ); |
| 49 |
define( 'WP_DRAFTSFORFRIENDS_MAIN_FILE', __FILE__ ); |
| 50 |
define( 'WP_DRAFTSFORFRIENDS_DIR', plugin_dir_path( __FILE__ ) ); |
| 51 |
define( 'WP_DRAFTSFORFRIENDS_URL', plugin_dir_url( __FILE__ ) ); |
| 52 |
|
| 53 |
require_once WP_DRAFTSFORFRIENDS_DIR . 'includes/class-wp-draftsforfriends-shares.php'; |
| 54 |
require_once WP_DRAFTSFORFRIENDS_DIR . 'includes/class-wp-draftsforfriends-options.php'; |
| 55 |
require_once WP_DRAFTSFORFRIENDS_DIR . 'includes/class-wp-draftsforfriends-install.php'; |
| 56 |
require_once WP_DRAFTSFORFRIENDS_DIR . 'includes/class-wp-draftsforfriends-preview.php'; |
| 57 |
require_once WP_DRAFTSFORFRIENDS_DIR . 'includes/class-wp-draftsforfriends.php'; |
| 58 |
|
| 59 |
WP_DraftsForFriends::get_instance(); |
| 60 |
|