From 9134e29faa9907d3c78adf6ca72ce0e6eaba98b7 Mon Sep 17 00:00:00 2001
From: Erick Hitter <git-contrib@ethitter.com>
Date: Tue, 4 Apr 2017 14:28:38 -0700
Subject: [PATCH] Starting handler for "Move to Trash"

---
 bulk-edit-cron-offload.php       |  1 +
 includes/class-move-to-trash.php | 26 ++++++++++++++++++++++++++
 2 files changed, 27 insertions(+)
 create mode 100644 includes/class-move-to-trash.php

diff --git a/bulk-edit-cron-offload.php b/bulk-edit-cron-offload.php
index 6ed1c21..dd1c1aa 100644
--- a/bulk-edit-cron-offload.php
+++ b/bulk-edit-cron-offload.php
@@ -16,3 +16,4 @@ require __DIR__ . '/includes/utils.php';
 // Plugin functionality
 require __DIR__ . '/includes/class-main.php';
 require __DIR__ . '/includes/class-delete-all.php';
+require __DIR__ . '/includes/class-move-to-trash.php';
diff --git a/includes/class-move-to-trash.php b/includes/class-move-to-trash.php
new file mode 100644
index 0000000..0275032
--- /dev/null
+++ b/includes/class-move-to-trash.php
@@ -0,0 +1,26 @@
+<?php
+
+namespace Automattic\WP\Bulk_Edit_Cron_Offload;
+
+class Move_To_Trash {
+	/**
+	 * Class constants
+	 */
+	const CRON_EVENT = 'a8c_bulk_edit_move_to_trash';
+
+	/**
+	 * Register this bulk process' hooks
+	 */
+	public static function register_hooks() {
+		add_action( Main::build_hook( 'trash' ), array( __CLASS__, 'process' ) );
+	}
+
+	/**
+	 * Handle a request to delete all trashed items for a given post type
+	 */
+	public static function process( $vars ) {
+		error_log( var_export( $vars, true ) );
+	}
+}
+
+Move_To_Trash::register_hooks();
-- 
GitLab