| 1 |
<?php |
| 2 |
|
| 3 |
namespace BulkWP\BulkDelete\Deprecated\Addons; |
| 4 |
|
| 5 |
defined( 'ABSPATH' ) || exit; // Exit if accessed directly. |
| 6 |
|
| 7 |
/** |
| 8 |
* Adds backward compatibility for Bulk Delete Posts By Attachment add-on v0.1 or below. |
| 9 |
* |
| 10 |
* This module will eventually be removed once the add-on is updated. |
| 11 |
* |
| 12 |
* @since 6.0.0 |
| 13 |
*/ |
| 14 |
class DeletePostsByAttachmentModule extends DeprecatedModule { |
| 15 |
protected function initialize() { |
| 16 |
$this->addon_class_name = 'Bulk_Delete_Posts_By_Attachment'; |
| 17 |
$this->addon_slug = 'bulk-delete-posts-by-attachment'; |
| 18 |
|
| 19 |
$this->item_type = 'posts'; |
| 20 |
$this->field_slug = ''; |
| 21 |
$this->meta_box_slug = 'bd-posts-by-attachment'; |
| 22 |
$this->action = 'bd_delete_posts_by_attachment'; |
| 23 |
$this->cron_hook = ''; |
| 24 |
$this->scheduler_url = 1; |
| 25 |
$this->messages = array( |
| 26 |
'box_label' => __( 'Delete Posts By Attachment', 'bulk-delete' ), |
| 27 |
'scheduled' => '', |
| 28 |
'cron_label' => '', |
| 29 |
); |
| 30 |
} |
| 31 |
|
| 32 |
/** |
| 33 |
* Call the render method of the add-on. |
| 34 |
*/ |
| 35 |
public function render() { |
| 36 |
\Bulk_Delete_Posts_By_Attachment::render_meta_box(); |
| 37 |
} |
| 38 |
} |
| 39 |
|