• File: DeletePostsByDuplicateTitleModule.php
  • Full Path: /home/eliteafr/www/archive-20260621215007/wp-content/plugins/bulk-delete/include/Deprecated/Addons/DeletePostsByDuplicateTitleModule.php
  • File size: 1.09 KB
  • MIME-type: text/x-php
  • Charset: utf-8
<?php

namespace BulkWP\BulkDelete\Deprecated\Addons;

defined( 'ABSPATH' ) || exit; // Exit if accessed directly.

/**
 * Adds backward compatibility for Bulk Delete Posts By Duplicate Title add-on v0.7 or below.
 *
 * This module will eventually be removed once the add-on is updated.
 *
 * @since 6.0.0
 */
class DeletePostsByDuplicateTitleModule extends DeprecatedModule {
	protected function initialize() {
		$this->addon_class_name = 'Bulk_Delete_Posts_By_Duplicate_Title';
		$this->addon_slug       = 'bulk-delete-posts-by-duplicate-title';

		$this->item_type     = 'posts';
		$this->field_slug    = '';
		$this->meta_box_slug = 'bd_by_duplicate_title';
		$this->action        = 'delete_posts_by_duplicate_title';
		$this->cron_hook     = '';
		$this->scheduler_url = '';
		$this->messages      = array(
			'box_label'  => __( 'Delete Posts By Duplicate Title', 'bulk-delete' ),
			'scheduled'  => '',
			'cron_label' => '',
		);
	}

	/**
	 * Call the render method of the add-on.
	 */
	public function render() {
		\Bulk_Delete_Posts_By_Duplicate_Title::render_delete_posts_by_duplicate_title_box();
	}
}