<?php

namespace Dev4Press\Plugin\DemoPress\Admin\Panel;

use Dev4Press\v50\Core\UI\Admin\PanelTools;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

class Tools extends PanelTools {
	protected function init_default_subpanels() {
		parent::init_default_subpanels();

		$this->subpanels = array_slice( $this->subpanels, 0, 1 ) +
		                   array(
			                   'cleanup' => array(
				                   'title'        => __( "Remove Generated Data", "demopress" ),
				                   'icon'         => 'ui-trash',
				                   'break'        => __( "Cleanup", "demopress" ),
				                   'break-icon'   => 'ui-warning',
				                   'method'       => 'post',
				                   'button_label' => __( "Remove Data", "demopress" ),
				                   'info'         => __( "Remove data generated by plugin.", "demopress" )
			                   )
		                   ) + array_slice( $this->subpanels, 1 );
	}
}
