PluginProbe
Bulk Delete / trunk
Bulk Delete vtrunk
6.12 trunk 0.2 0.3 0.4 0.6 0.7 0.8 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2.0 2.1 2.2 2.2.1 2.2.2 3.0 3.1 All 64 releases
bulk-delete / include / Deprecated / Addons / DeletePostsByAttachmentModule.php

DeletePostsByAttachmentModule.php in Bulk Delete trunk, at include/Deprecated/Addons/DeletePostsByAttachmentModule.php

39 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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