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 / DeletePostsByContentModule.php

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

40 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 Content add-on v1.0.0 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 DeletePostsByContentModule extends DeprecatedModule {
15 protected function initialize() {
16 $this->addon_class_name = 'Bulk_Delete_Posts_By_Content';
17 $this->addon_slug = 'bulk-delete-posts-by-content';
18
19 $this->item_type = 'posts';
20 $this->field_slug = '';
21 $this->meta_box_slug = 'bd-posts-by-content';
22 $this->action = 'bd_delete_posts_by_content';
23 $this->cron_hook = '';
24 $this->scheduler_url = 1;
25 $this->messages = array(
26 'box_label' => __( 'Delete Posts By Content', '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 $module = new \Bulk_Delete_Posts_By_Content();
37 $module->render_meta_box();
38 }
39 }
40