# maxbuttons/6.9/includes/maxbuttons-delete.php

MaxButtons – Create buttons, version 6.9. 15 lines.

- Page: https://pluginprobe.com/plugins/maxbuttons/6.9/code/includes/maxbuttons-delete.php
- Raw: https://pluginprobe.com/plugins/maxbuttons/6.9/raw/includes/maxbuttons-delete.php
- Modified: 2015-04-10T13:31:36+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/maxbuttons/6.9/code/includes/maxbuttons-delete.php#L10-L20`.

```php
<?php
if (isset($_GET['id']) && $_GET['id'] != '') {
	$button = new maxButton();
	$button_id = intval($_GET["id"]); // validation
	
	$button->delete(intval($_GET['id'])); 
	
	//maxbuttons_button_delete_permanently($_GET['id']);
}
 
?>
<script type="text/javascript">
	window.location = "<?php admin_url() ?>admin.php?page=maxbuttons-controller&action=list&status=trash&message=1delete";
</script>

```
