WordPress at Your Fingertips
function is not described

ActionScheduler_AsyncRequest_QueueRunner::get_sleep_seconds() protected WC 1.0

Chaining async requests can crash MySQL. A brief sleep call in PHP prevents that.

{} It's a method of the class: ActionScheduler_AsyncRequest_QueueRunner{}


null. Nothing.


// protected - for code of main (parent) or child class
$result = $this->get_sleep_seconds();

Code of ActionScheduler_AsyncRequest_QueueRunner::get_sleep_seconds() WC 6.1.1

protected function get_sleep_seconds() {
	return apply_filters( 'action_scheduler_async_request_sleep_seconds', 5, $this );