From d4d060ca742f8f98b4320abaab13a3b185d9f386 Mon Sep 17 00:00:00 2001 From: Erick Hitter <git-contrib@ethitter.com> Date: Tue, 12 Sep 2017 18:33:48 -0700 Subject: [PATCH] Provide actions for users to log from or whatever --- includes/class-delete-all.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/includes/class-delete-all.php b/includes/class-delete-all.php index 6edc43b..3f683f4 100644 --- a/includes/class-delete-all.php +++ b/includes/class-delete-all.php @@ -58,7 +58,6 @@ class Delete_All { * Cron callback to delete trashed items in a given post type * * @param object $vars Bulk-request variables. - * @return array|bool */ public static function process_via_cron( $vars ) { global $wpdb; @@ -103,12 +102,10 @@ class Delete_All { } } - // TODO: something meaningful with this data. $results = compact( 'deleted', 'locked', 'auth_error', 'error' ); - return $results; + do_action( 'bulk_edit_cron_offload_delete_all_request_completed', $results, $vars ); } else { - // TODO: What to do here? - return false; + do_action( 'bulk_edit_cron_offload_delete_all_request_no_posts', $post_ids, $vars ); } } -- GitLab