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

Better organization

parent 0033ea1e
No related branches found
No related tags found
No related merge requests found
...@@ -237,26 +237,6 @@ class Main { ...@@ -237,26 +237,6 @@ class Main {
unset( $_REQUEST['delete_all2'] ); unset( $_REQUEST['delete_all2'] );
} }
/**
* Create cron event
*
* @param object $vars Bulk-request variables.
* @return bool
*/
public static function schedule_processing( $vars ) {
return false !== wp_schedule_single_event( time(), self::CRON_EVENT, array( $vars ) );
}
/**
* Retrieve timestamp for next scheduled event with given vars
*
* @param object $vars Bulk-request variables.
* @return int
*/
public static function next_scheduled( $vars ) {
return (int) wp_next_scheduled( self::CRON_EVENT, array( $vars ) );
}
/** /**
* Redirect, including a flag to indicate if the bulk process was scheduled successfully * Redirect, including a flag to indicate if the bulk process was scheduled successfully
* *
...@@ -305,6 +285,26 @@ class Main { ...@@ -305,6 +285,26 @@ class Main {
<?php <?php
} }
/**
* Create cron event
*
* @param object $vars Bulk-request variables.
* @return bool
*/
public static function schedule_processing( $vars ) {
return false !== wp_schedule_single_event( time(), self::CRON_EVENT, array( $vars ) );
}
/**
* Retrieve timestamp for next scheduled event with given vars
*
* @param object $vars Bulk-request variables.
* @return int
*/
public static function next_scheduled( $vars ) {
return (int) wp_next_scheduled( self::CRON_EVENT, array( $vars ) );
}
/** /**
* Find the next scheduled instance of a given action, regardless of arguments * Find the next scheduled instance of a given action, regardless of arguments
* *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment