WordPress at Your Fingertips
function is not described

ActionScheduler_Abstract_QueueRunner::memory_exceeded() protected WC 1.0

Memory exceeded

Ensures the batch process never exceeds 90% of the maximum WordPress memory.

Based on WP_Background_Process::memory_exceeded()

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

Hooks from the method




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

Code of ActionScheduler_Abstract_QueueRunner::memory_exceeded() WC 6.1.0

protected function memory_exceeded() {

	$memory_limit    = $this->get_memory_limit() * 0.90;
	$current_memory  = memory_get_usage( true );
	$memory_exceeded = $current_memory >= $memory_limit;

	return apply_filters( 'action_scheduler_memory_exceeded', $memory_exceeded, $this );