# elementor/3.1.0-beta1/core/kits/views/trash-kit-confirmation.php

Elementor Website Builder – more than just a page builder, version 3.1.0-beta1. 36 lines.

- Page: https://pluginprobe.com/plugins/elementor/3.1.0-beta1/code/core/kits/views/trash-kit-confirmation.php
- Raw: https://pluginprobe.com/plugins/elementor/3.1.0-beta1/raw/core/kits/views/trash-kit-confirmation.php
- Modified: 2020-12-21T15:47:40+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/elementor/3.1.0-beta1/code/core/kits/views/trash-kit-confirmation.php#L10-L20`.

```php
<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

/**
 * @var int $post_id
 * @var boolean $is_permanently_delete
 */

$config_url = add_query_arg(
	[ 'force_delete_kit' => '1' ],
	get_delete_post_link( $post_id, '', $is_permanently_delete )
);
?>

<?php
if ( $is_permanently_delete ) {
	echo __( 'If you delete this template, all associated global settings, typography and colors will be deleted', 'elementor' );
} else {
	echo __( 'If you move this template to trash, all associated global settings, typography and colors will be deleted', 'elementor' );
}
?>

<br><br>
<a class="button" href="<?php echo $config_url; ?>">
	<?php
	if ( $is_permanently_delete ) {
		echo __( 'Confirm delete', 'elementor' );
	} else {
		echo __( 'Confirm trash', 'elementor' );
	}
	?>
</a>
<a class="button" href="javascript:history.back()"> <?php echo __( 'Cancel', 'elementor' ); ?> </a>

```
