| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Bulk Delete |
| 4 |
* Plugin URI: https://bulkwp.com/ |
| 5 |
* Description: Bulk delete users and posts from selected categories, tags, post types, custom taxonomies or by post status like drafts, scheduled posts, revisions etc. |
| 6 |
* Version: 6.12 |
| 7 |
* License: GPLv2 or later |
| 8 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html |
| 9 |
* Author: WebFactory Ltd |
| 10 |
* Author URI: https://www.webfactoryltd.com/ |
| 11 |
* Text Domain: bulk-delete |
| 12 |
*/ |
| 13 |
|
| 14 |
/** |
| 15 |
* Copyright 2025-2026 WebFactory Ltd |
| 16 |
* Copyright 2009 Sudar Muthu (email : sudar@sudarmuthu.com) |
| 17 |
* This program is free software; you can redistribute it and/or modify |
| 18 |
* it under the terms of the GNU General Public License, version 2, as |
| 19 |
* published by the Free Software Foundation. |
| 20 |
* |
| 21 |
* This program is distributed in the hope that it will be useful, |
| 22 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 23 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 24 |
* GNU General Public License for more details. |
| 25 |
* |
| 26 |
* You should have received a copy of the GNU General Public License |
| 27 |
* along with this program; if not, write to the Free Software |
| 28 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
| 29 |
*/ |
| 30 |
defined( 'ABSPATH' ) || exit; // Exit if accessed directly. |
| 31 |
|
| 32 |
define('BULK_DELETE_FILE', __FILE__); |
| 33 |
define('BULK_DELETE_PATH', plugin_dir_path(__FILE__)); |
| 34 |
define('BULK_DELETE_URL', plugins_url() . '/bulk-delete/'); |
| 35 |
|
| 36 |
// Include the stub of the old `Bulk_Delete` class, so that old add-ons don't generate a fatal error. |
| 37 |
require_once 'include/Deprecated/old-bulk-delete.php'; |
| 38 |
|
| 39 |
// PHP is at least 5.3, so we can safely include namespace code. |
| 40 |
require_once 'load-bulk-delete.php'; |
| 41 |
|
| 42 |
bulk_delete_load( __FILE__ ); |
| 43 |
|