Skip to content
Snippets Groups Projects
Commit bf58b86a authored by Erick Hitter's avatar Erick Hitter
Browse files

Starting point for handling all deletes in cron

parent aff6cbcf
No related branches found
No related tags found
No related merge requests found
...@@ -12,3 +12,4 @@ namespace Automattic\WP\Bulk_Edit_Cron_Offload; ...@@ -12,3 +12,4 @@ namespace Automattic\WP\Bulk_Edit_Cron_Offload;
// Plugin functionality // Plugin functionality
require __DIR__ . '/includes/class-main.php'; require __DIR__ . '/includes/class-main.php';
require __DIR__ . '/includes/class-delete-all.php';
<?php
namespace Automattic\WP\Bulk_Edit_Cron_Offload;
class Delete_All {
/**
*
*/
private static $vars = null;
/**
*
*/
public static function process( $vars ) {
self::$vars = $vars;
}
}
...@@ -25,6 +25,7 @@ class Main { ...@@ -25,6 +25,7 @@ class Main {
// Now what? // Now what?
switch ( $vars->action ) { switch ( $vars->action ) {
case 'delete_all' : case 'delete_all' :
Delete_All::process( $vars );
break; break;
case 'trash' : case 'trash' :
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment